Backquote database name (RFE#1376336).
This commit is contained in:
@@ -123,6 +123,9 @@ function PMA_exportDBCreate($db) {
|
||||
}
|
||||
$create_query .= ';' . $crlf;
|
||||
if (!PMA_exportOutputHandler($create_query)) return FALSE;
|
||||
if (isset($GLOBALS['use_backquotes']) && PMA_MYSQL_INT_VERSION >= 40100 && isset($GLOBALS['sql_compat']) && $GLOBALS['sql_compat'] == 'NONE') {
|
||||
return PMA_exportOutputHandler('USE ' . PMA_backquote($db) . ';' . $crlf);
|
||||
}
|
||||
return PMA_exportOutputHandler('USE ' . $db . ';' . $crlf);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user