From 8656dd1f095f512388949687048d4b39dc44bbce Mon Sep 17 00:00:00 2001 From: ozh Date: Thu, 30 May 2013 18:34:24 +0200 Subject: [PATCH] Sync with ezSQL lib --- includes/ezSQL/ez_sql_mysql.php | 2 ++ includes/ezSQL/ez_sql_pdo.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/ezSQL/ez_sql_mysql.php b/includes/ezSQL/ez_sql_mysql.php index 312f003..cdabb7e 100644 --- a/includes/ezSQL/ez_sql_mysql.php +++ b/includes/ezSQL/ez_sql_mysql.php @@ -36,6 +36,7 @@ class ezSQL_mysql extends ezSQLcore var $dbname = false; var $dbhost = false; var $encoding = false; + var $rows_affected = false; /********************************************************************** * Constructor - allow the user to perform a qucik connect at the @@ -191,6 +192,7 @@ function query($query) // This keeps the connection alive for very long running scripts if ( $this->num_queries >= 500 ) { + $this->num_queries = 0; $this->disconnect(); $this->quick_connect($this->dbuser,$this->dbpassword,$this->dbname,$this->dbhost,$this->encoding); } diff --git a/includes/ezSQL/ez_sql_pdo.php b/includes/ezSQL/ez_sql_pdo.php index 80f86d6..69bb822 100644 --- a/includes/ezSQL/ez_sql_pdo.php +++ b/includes/ezSQL/ez_sql_pdo.php @@ -53,7 +53,6 @@ function ezSQL_pdo($dsn='', $user='', $password='', $ssl=array()) function connect($dsn='', $user='', $password='', $ssl=array()) { - global $ezsql_pdo_str; $return_val = false; // Must have a user and a password -- 2.45.0