Skip to content

Commit

Permalink
Add whitespace to query
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Mar 15, 2014
1 parent 8670cfc commit 7362917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/drivers/mysql.inc.php
Expand Up @@ -734,7 +734,7 @@ 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")
if (!queries("\nDROP TABLE IF EXISTS $name")
|| !queries("CREATE TABLE $name LIKE " . table($table))
|| !queries("INSERT INTO $name SELECT * FROM " . table($table))
) {
Expand Down

0 comments on commit 7362917

Please sign in to comment.