1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

Disable auto increment in copy table (bug #3363142)

This commit is contained in:
Jakub Vrana
2011-07-12 15:14:15 +02:00
parent 5fa9f84de0
commit 6027d181a4

View File

@@ -667,6 +667,7 @@ if (!defined("DRIVER")) {
* @return bool
*/
function copy_tables($tables, $views, $target) {
queries("SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'");
foreach ($tables as $table) {
$name = ($target == DB ? table("copy_$table") : idf_escape($target) . "." . table($table));
if (!queries("DROP TABLE IF EXISTS $name")