Have wpdb::flush() reset more variables.

git-svn-id: http://core.svn.wordpress.org/trunk@24459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-06-21 01:32:54 +00:00
parent 03e2f6fb30
commit 9f10b33324

View File

@ -1117,6 +1117,8 @@ class wpdb {
$this->last_result = array();
$this->col_info = null;
$this->last_query = null;
$this->rows_affected = $this->num_rows = $this->insert_id = 0;
$this->last_error = '';
if ( is_resource( $this->result ) )
mysql_free_result( $this->result );