Skip to content

Commit

Permalink
bug #1783667 NO_AUTO_VALUE_ON_ZERO and MySQL version
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Aug 30, 2007
1 parent 445e24b commit 470cdda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$
$HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $

2.11.1.0 (not yet released)

- bug #1783667 [export] NO_AUTO_VALUE_ON_ZERO and MySQL version

2.11.0.0 (2007-08-21)

+ [import] support handling of DELIMITER to mimic mysql CLI, thanks to fb1
Expand Down
2 changes: 1 addition & 1 deletion libraries/export/sql.php
Expand Up @@ -219,7 +219,7 @@ function PMA_exportHeader()

/* We want exported AUTO_INCREMENT fields to have still same value, do this only for recent MySQL exports */
if (!isset($GLOBALS['sql_compatibility']) || $GLOBALS['sql_compatibility'] == 'NONE') {
$head .= $crlf . 'SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";' . $crlf;
$head .= $crlf . (PMA_MYSQL_INT_VERSION >= 40101 ? 'SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";' . $crlf : '');
}

if (isset($GLOBALS['sql_use_transaction'])) {
Expand Down

0 comments on commit 470cdda

Please sign in to comment.