Hello Monks,
If you insert a integer that is out of range in mysql it automaticly converts the integer to the nearest valid value.
If you have a mysql column with smallint and try to insert -32769, it automaticly inserts -32768 and throws a warning(according to the mysql documentation). How do i fetch this warnings with DBD::mysql?
In DBI its mentioned that a driver can write warnings to $DBI::errstr, but even though $sth->{mysql_warning_count} > 0 both $DBI::errstr and $DBI::err is empty. How to i fetch the warnings?
Thanks for any input!
Best regards
In reply to Mysql smallint out of range. How to fetch warning? by bannaN
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |