note 36730 added to function.mysqli-affected-rows

From: Date: Mon, 20 Oct 2003 14:05:57 +0000
Subject: note 36730 added to function.mysqli-affected-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-58944@lists.php.net to get a copy of this message
WARNING when using mysql_affected_row() in a ("START TRANSACTION") - ("COMMIT" or "ROLLBACK") mysql schema with InnoBD or BDB tables: mysql_affected_row() return alway 0 because altered dataes are waiting for the "COMMIT" sql command to be flushed in the database...and mysql_affected_row() report only flushed dataes. mysql_affected_row() work fine on other table type like MyISAM because they don't implement the ("START TRANSACTION")-("COMMIT" or "ROLLBACK") mysql shema. ---- Manual Page -- http://www.php.net/manual/en/function.mysqli-affected-rows.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36730 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36730&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36730&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58944) next »