Jump to content

Very strange, mysql_query can not write


hisher

Recommended Posts

I have a table "text" with attributes:

old_id   int( 8 ) auto_increment

old_text   mediumblob

old_flags   tinyblob

 

When I execute the query :

 

INSERT  INTO `text` (old_id,old_text,old_flags) VALUES (NULL,'aa','utf-8')

 

I found the Autoindex in the table increased. I double checked with mysql_error(print no error) and mysql_affected_rows(the value is 1).

 

However, the problem is the inserted tuple did not appear in the database. I found the maximum 'old_id' does not changed, no tuple with text 'aa'.

 

The syntax of sql should be fine. I checked with phpMyAdmin and the tuple is successfully inserted and displayed in the database.

 

Anyone knows what could cause this problem? I am very confused and thanks for your help.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/137769-very-strange-mysql_query-can-not-write/
Share on other sites

Actually I am using the open source "mediawiki" to support wiki platform.

 

I traced to the code where the sql query is executed and made the above tests.

 

But obvisouly, I have no big picture of how the whole project's transaction is handled.

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.