diff --git a/ChangeLog b/ChangeLog index 0313ee3b1..0b69bfa6a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-09-12 Marc Delisle + * libraries/config.default.php, libraries/export/sql.php: + bug #1556934, sql compatibility mode on export + 2006-09-11 Marc Delisle * libraries/export/sql.php: bug #1555760, export default parameter broken diff --git a/libraries/config.default.php b/libraries/config.default.php index 32803d64f..4ba3f1bed 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -313,7 +313,7 @@ $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure'; $cfg['Export']['sql_structure'] = TRUE; $cfg['Export']['sql_data'] = TRUE; -$cfg['Export']['sql_compat'] = 'NONE'; +$cfg['Export']['sql_compatibility'] = 'NONE'; $cfg['Export']['sql_disable_fk'] = FALSE; $cfg['Export']['sql_use_transaction'] = FALSE; $cfg['Export']['sql_drop_database'] = FALSE; diff --git a/libraries/export/sql.php b/libraries/export/sql.php index 3fa2b1d10..18d11db14 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -175,8 +175,8 @@ function PMA_exportHeader() global $crlf; global $cfg; - if (PMA_MYSQL_INT_VERSION >= 40100 && isset($GLOBALS['sql_compat']) && $GLOBALS['sql_compat'] != 'NONE') { - PMA_DBI_try_query('SET SQL_MODE="' . $GLOBALS['sql_compat'] . '"'); + if (PMA_MYSQL_INT_VERSION >= 40100 && isset($GLOBALS['sql_compatibility']) && $GLOBALS['sql_compatibility'] != 'NONE') { + PMA_DBI_try_query('SET SQL_MODE="' . $GLOBALS['sql_compatibility'] . '"'); } $head = $GLOBALS['comment_marker'] . 'phpMyAdmin SQL Dump' . $crlf @@ -241,7 +241,7 @@ function PMA_exportDBCreate($db) if (!PMA_exportOutputHandler($create_query)) { return FALSE; } - if (isset($GLOBALS['sql_backquotes']) && PMA_MYSQL_INT_VERSION >= 40100 && isset($GLOBALS['sql_compat']) && $GLOBALS['sql_compat'] == 'NONE') { + if (isset($GLOBALS['sql_backquotes']) && PMA_MYSQL_INT_VERSION >= 40100 && isset($GLOBALS['sql_compatibility']) && $GLOBALS['sql_compatibility'] == 'NONE') { return PMA_exportOutputHandler('USE ' . PMA_backquote($db) . ';' . $crlf); } return PMA_exportOutputHandler('USE ' . $db . ';' . $crlf);