mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
Add temporary mysql check for dropping the table
This commit is contained in:
parent
f6630b7a33
commit
6fd67ec9e8
@ -367,7 +367,12 @@
|
|||||||
}
|
}
|
||||||
$tempcreate = substr($tempcreate,0,-1) . ")";
|
$tempcreate = substr($tempcreate,0,-1) . ")";
|
||||||
//echo $tempcreate;
|
//echo $tempcreate;
|
||||||
$this->db->query("DROP TABLE IF EXISTS $tmp_table");
|
|
||||||
|
if ($phpgw_info["server"]["db_type"]=="mysql") {
|
||||||
|
$ifexists = "IF EXISTS";
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->db->query("DROP TABLE $ifexists $tmp_table");
|
||||||
$this->db->query($tempcreate);
|
$this->db->query($tempcreate);
|
||||||
|
|
||||||
for ($i=0;$i<count($tempinsert);$i++) {
|
for ($i=0;$i<count($tempinsert);$i++) {
|
||||||
@ -435,7 +440,7 @@
|
|||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$this->db->query("DROP TABLE IF EXISTS $tmp_table");
|
$this->db->query("DROP TABLE $tmp_table");
|
||||||
return $return_fields;
|
return $return_fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user