Permalink
Browse files

Allow 0 in auto_increment column

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1019 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
jakubvrana
jakubvrana committed Aug 26, 2009
1 parent 1f09dd3 commit e2e5123bb8f88173e9d8aa10b915c27831216bb5
Showing with 1 addition and 0 deletions.
  1. +1 −0 adminer/dump.inc.php
View
@@ -31,6 +31,7 @@ function dump_triggers($table, $style) {
echo "SET NAMES utf8;\n";
echo "SET foreign_key_checks = 0;\n";
echo "SET time_zone = " . $dbh->quote($dbh->result($dbh->query("SELECT @@time_zone"))) . ";\n";
+ echo "SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';\n";
echo "\n";
}

0 comments on commit e2e5123

Please sign in to comment.