]> git.joonet.de Git - adminer.git/commitdiff
Always use columns list in export
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 15 Jun 2009 11:12:09 +0000 (11:12 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 15 Jun 2009 11:12:09 +0000 (11:12 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@699 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/include/export.inc.php

index 915d4dc9a413fbf756db638cc70f6c02fc724fcb..05c393465e913f24fe7e14d784ebf9f3aad8aa0f 100644 (file)
@@ -129,7 +129,7 @@ function dump_data($table, $style, $select = "") {
                                if ($_POST["format"] == "csv") {
                                        dump_csv($row);
                                } else {
-                                       $insert = "INSERT INTO " . idf_escape($table) . ($select ? " (" . implode(", ", array_map('idf_escape', array_keys($row))) . ")" : "") . " VALUES";
+                                       $insert = "INSERT INTO " . idf_escape($table) . " (" . implode(", ", array_map('idf_escape', array_keys($row))) . ") VALUES";
                                        $row2 = array();
                                        foreach ($row as $key => $val) {
                                                $row2[$key] = (isset($val) ? "'" . $dbh->escape_string($val) . "'" : "NULL");