I’ve this problem: before 5.5 mySQL (using myISAM tables) used to truncate VARCHAR types to the column length. Now, starting with the abovementioned version, it doesn’t anymore. It’s a huge problem as it breaks my app (I know there shouldn’t be such problem, but I didn’t do that… I just have to cope with it, so please be patient). Is there a way to set this behaviour in 5.5?
I tried to set SQL-MODE = “STRICT_TRANS_TABLES” as I read somewhere it would help… It doesn’t….
I even suspect I can solve this by setting some parameter in the JDBC driver I’m using, yeah, sorry it’s a java app, I forgot…
Please help !
The problem was in a parameter of JDBC driver. In fact it was set to throw exceptions in case of truncation. Changing the configuration solved it.