From c78437221d4283611b956111f6b3041c6a085c0c Mon Sep 17 00:00:00 2001 From: fufroma Date: Fri, 28 Mar 2014 10:49:11 +0100 Subject: [PATCH] Revert "Commence a passer en mysqli" This reverts commit faaf268d689ec5defc063d55a0d85dcb863ada12. --- .travis.yml | 1 - bureau/class/db_mysql.php | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4ca24f93..bd2a5e41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: php php: - - 5.5 - 5.4 - 5.3 script: phpunit --coverage-clover=coverage.clover diff --git a/bureau/class/db_mysql.php b/bureau/class/db_mysql.php index 339143cc..11bc4ed6 100644 --- a/bureau/class/db_mysql.php +++ b/bureau/class/db_mysql.php @@ -325,7 +325,7 @@ class DB_Sql { $this->Seq_Table, $seq_name, $currentid); - @mysql_query($q, $this->Link_ID); + $id = @mysql_query($q, $this->Link_ID); } else { $currentid = $res["nextid"]; } @@ -334,7 +334,7 @@ class DB_Sql { $this->Seq_Table, $nextid, $seq_name); - @mysql_query($q, $this->Link_ID); + $id = @mysql_query($q, $this->Link_ID); $this->unlock(); } else { $this->halt("cannot lock ".$this->Seq_Table." - has it been created?"); @@ -345,6 +345,8 @@ class DB_Sql { /* public: return table metadata */ function metadata($table='',$full=false) { + $count = 0; + $id = 0; $res = array(); /* @@ -479,7 +481,7 @@ class DB_Sql { $this->query("SHOW TABLES"); $i=0; $return=array(); - while ($info=mysqli_fetch_row($this->Query_ID)) + while ($info=mysql_fetch_row($this->Query_ID)) { $return[$i]["table_name"]= $info[0]; $return[$i]["tablespace_name"]=$this->Database;