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:
@@ -667,6 +667,7 @@ if (!defined("DRIVER")) {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function copy_tables($tables, $views, $target) {
|
function copy_tables($tables, $views, $target) {
|
||||||
|
queries("SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'");
|
||||||
foreach ($tables as $table) {
|
foreach ($tables as $table) {
|
||||||
$name = ($target == DB ? table("copy_$table") : idf_escape($target) . "." . table($table));
|
$name = ($target == DB ? table("copy_$table") : idf_escape($target) . "." . table($table));
|
||||||
if (!queries("DROP TABLE IF EXISTS $name")
|
if (!queries("DROP TABLE IF EXISTS $name")
|
||||||
|
Reference in New Issue
Block a user