Jump to content

"Binary_file.dat" inserted into auto-increment field -- instead of a number


stevieontario

Recommended Posts

Afternoon Freaks,

 

I have been getting a weird INSERT query result. I put data into a table using the following query:

$cquery = "insert into performance2
							(sourceId, column1, column2, column3, column4)
							VALUES ('$lastSid', '$value1', '$value2', '$value3', '$value4')";
						mysql_query($cquery, $cxn);

 

The table performance2 contains an id field (perfid) which is an auto-incremented, indexed, primary key.

 

When I run that query, everything works -- except that all the perfid rows are filled with "binary_file.dat". I've never seen this before, and I've tried googling the problem and still can't find out what's going on.

 

Anybody have any ideas? Thanks!

Link to comment
Share on other sites

1. INT(125) is nonsense.

2. I can't see it marked as AUTO_INCREMENT (perhaps you cut it off)

3. As said before, INT column cannot hold anything like 'binary_file.dat'. I'm not sure what to think about it. Where exactly do you see this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.