1
0
Fork 0

switched to mysqli_select_db

the emulation of mysql_select_db with the USE statement did not quote the table name so table names which need quotation (which contain dashes for example) were not handled correctly
the emualtion is not needed, see https://github.com/philip/MySQLConverterTool/issues/20
Dieser Commit ist enthalten in:
e-dschungel 2017-01-29 21:42:37 +01:00
Ursprung cd2675d498
Commit 72998c0df3
10 geänderte Dateien mit 21 neuen und 21 gelöschten Zeilen

Datei anzeigen

@ -226,7 +226,7 @@ function DB_Copy($source, $destination, $drop_source=0, $insert_data=1)
return false;
}
}
((bool)mysqli_query($GLOBALS["___mysqli_ston"], "USE " . $destination));
mysqli_select_db($GLOBALS["___mysqli_ston"], $destination);
$res=MSD_DoSQL($SQL_Array);
if ($drop_source == 1 && $res) MSD_query("DROP DATABASE `$source`;");
return $res;