Jump to content

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.

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.