Pass link indentifier to mymysql_affected_rows(). Props Doug Kaye.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b5eab92808
commit
ab510803f4
|
@ -192,7 +192,7 @@ class wpdb {
|
|||
}
|
||||
|
||||
if ( preg_match("/^\\s*(insert|delete|update|replace) /i",$query) ) {
|
||||
$this->rows_affected = mysql_affected_rows();
|
||||
$this->rows_affected = mysql_affected_rows($this->dbh);
|
||||
// Take note of the insert_id
|
||||
if ( preg_match("/^\\s*(insert|replace) /i",$query) ) {
|
||||
$this->insert_id = mysql_insert_id($this->dbh);
|
||||
|
|
Loading…
Reference in New Issue