Commence a passer en mysqli
This commit is contained in:
parent
62981ecfa5
commit
faaf268d68
|
@ -1,5 +1,6 @@
|
|||
language: php
|
||||
php:
|
||||
- 5.5
|
||||
- 5.4
|
||||
- 5.3
|
||||
script: phpunit --coverage-clover=coverage.clover
|
||||
|
|
|
@ -325,7 +325,7 @@ class DB_Sql {
|
|||
$this->Seq_Table,
|
||||
$seq_name,
|
||||
$currentid);
|
||||
$id = @mysql_query($q, $this->Link_ID);
|
||||
@mysql_query($q, $this->Link_ID);
|
||||
} else {
|
||||
$currentid = $res["nextid"];
|
||||
}
|
||||
|
@ -334,7 +334,7 @@ class DB_Sql {
|
|||
$this->Seq_Table,
|
||||
$nextid,
|
||||
$seq_name);
|
||||
$id = @mysql_query($q, $this->Link_ID);
|
||||
@mysql_query($q, $this->Link_ID);
|
||||
$this->unlock();
|
||||
} else {
|
||||
$this->halt("cannot lock ".$this->Seq_Table." - has it been created?");
|
||||
|
@ -345,8 +345,6 @@ class DB_Sql {
|
|||
|
||||
/* public: return table metadata */
|
||||
function metadata($table='',$full=false) {
|
||||
$count = 0;
|
||||
$id = 0;
|
||||
$res = array();
|
||||
|
||||
/*
|
||||
|
@ -481,7 +479,7 @@ class DB_Sql {
|
|||
$this->query("SHOW TABLES");
|
||||
$i=0;
|
||||
$return=array();
|
||||
while ($info=mysql_fetch_row($this->Query_ID))
|
||||
while ($info=mysqli_fetch_row($this->Query_ID))
|
||||
{
|
||||
$return[$i]["table_name"]= $info[0];
|
||||
$return[$i]["tablespace_name"]=$this->Database;
|
||||
|
|
Loading…
Reference in New Issue