Jonathan Leffler skrev: > H.Merijn Brand wrote: >> Tim Bunce wrote: >>>> A. What changes you'd like to see in the DBI API. >> How about a new attribute: AutoTruncate >> >> so I can just put "grkaerhgkjehrgkaerhg" in a varcar/char (3) and it >> will store "grk" > > That happens anyway in DBD::Informix - the DBMS does it. There is a > warning raised, but the operation goes through anyway. Which DBMS > doesn't do that automatically? Ingres?
No, Ingres automatically truncates (and gives a warning, which DBD::Ingres ignores, as I have nowhere to put it). Which triggers me to suggest somewhere to report warnings/messages from the DBMS - it can't be $h->errstr, as that is used for (fatal) errors. How about $h->warning ? -- Henrik Tougaard, DBD::Ingres
