Jump to content

Incorrect integer value: '' for column 'id' at row 1


rarebit

Recommended Posts

Hi,

 

I wrote some code a fair while ago now and just trying to use it again. The code works fine on my Linux distro, but on Windows i'm getting an error...

 

 

 

MYSQL ERROR: Incorrect integer value: '' for column 'id' at row 1

USING: INSERT INTO log_rec VALUES('','127.0.0.1','1370900361','404','GET','xyz',xyz','xyz')

 

Basically 'id' is an int not null autoincrement, and I pass it an empty string.

 

Do you know what the issue is?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.