From: jakubvrana Date: Mon, 20 Jul 2009 14:26:46 +0000 (+0000) Subject: Don't quote numeric values X-Git-Tag: v3.0.0~673 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=7ed208859b8b51f6c58e96d100a79cbfe33acc4f;p=adminer.git Don't quote numeric values git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@854 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/adminer/include/export.inc.php b/adminer/include/export.inc.php index 01716dcb..3f88bc32 100644 --- a/adminer/include/export.inc.php +++ b/adminer/include/export.inc.php @@ -112,7 +112,7 @@ function dump_data($table, $style, $select = "") { $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->quote($val) : "NULL"); + $row2[$key] = (isset($val) ? (is_numeric($val) ? $val : $dbh->quote($val)) : "NULL"); } if ($style == "INSERT+UPDATE") { $set = array();