Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Always use columns list in export

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@699 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit c67557c82a386b1a97955fee53260c6831559786 1 parent 23ac75a
jakubvrana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  adminer/include/export.inc.php
View
2  adminer/include/export.inc.php
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.