I am "suddenly" getting an error from MySQL on my server.
Sometime between January 10 and January 15, inserts into a MySQL table are failing.
The code is very simple, as is the table. Here they are:
And the error message I get is pretty straightforward as well:Code:The insert statement: $sql = "insert into xxxxxxxxxx values ($rs_1111111111,$rs_2222222222,'')"; Note that the double single-quote for the third column value is hard coded. The table create: CREATE TABLE `xxxxxxxxxxx` ( `1111111111` mediumint(8) NOT NULL default '0', `2222222222` mediumint(8) NOT NULL default '0', `XXXXXXXXXX` tinyint(1) default NULL, KEY `3333333333` (`3333333333`), KEY `4444444444` (`4444444444`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1
It had been working for over a year; hundreds of successful inserts.Code:Incorrect integer value: '' for column 'XXXXXXXXXX' at row 1
Now I understand why this might not be working, but what I want to know is what changed on the server to cause this to suddenly start failing? Has a new version of MySQL been installed in that timeframe? Is there a release notes page for that version that might explain the error? Was the server put into ANSI mode?
Thanks.


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks