patch #2089240 [export] handle correctly switching SQL modes
This commit is contained in:
@@ -18,6 +18,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
+ [auth] do not allow root user without password unless explicitly enabled by
|
+ [auth] do not allow root user without password unless explicitly enabled by
|
||||||
AllowEmptyRoot
|
AllowEmptyRoot
|
||||||
+ rfe #1778908 [auth] arbitrary server auth can now also accept port
|
+ rfe #1778908 [auth] arbitrary server auth can now also accept port
|
||||||
|
- patch #2089240 [export] handle correctly switching SQL modes
|
||||||
|
|
||||||
3.0.0.0 (not yet released)
|
3.0.0.0 (not yet released)
|
||||||
+ [export] properly handle line breaks for YAML, thanks to Dan Barry -
|
+ [export] properly handle line breaks for YAML, thanks to Dan Barry -
|
||||||
|
@@ -189,8 +189,13 @@ function PMA_exportHeader()
|
|||||||
global $cfg;
|
global $cfg;
|
||||||
global $mysql_charset_map;
|
global $mysql_charset_map;
|
||||||
|
|
||||||
if (isset($GLOBALS['sql_compatibility']) && $GLOBALS['sql_compatibility'] != 'NONE') {
|
if (isset($GLOBALS['sql_compatibility'])) {
|
||||||
PMA_DBI_try_query('SET SQL_MODE="' . $GLOBALS['sql_compatibility'] . '"');
|
$tmp_compat = $GLOBALS['sql_compatibility'];
|
||||||
|
if ($tmp_compat == 'NONE') {
|
||||||
|
$tmp_compat = '';
|
||||||
|
}
|
||||||
|
PMA_DBI_try_query('SET SQL_MODE="' . $tmp_compat . '"');
|
||||||
|
unset($tmp_compat);
|
||||||
}
|
}
|
||||||
$head = PMA_exportComment('phpMyAdmin SQL Dump')
|
$head = PMA_exportComment('phpMyAdmin SQL Dump')
|
||||||
. PMA_exportComment('version ' . PMA_VERSION)
|
. PMA_exportComment('version ' . PMA_VERSION)
|
||||||
|
Reference in New Issue
Block a user