Backquote database name (RFE#1376336).

This commit is contained in:
Michal Čihař
2005-12-08 21:07:05 +00:00
parent 7eef95e875
commit 4de79cbc10
2 changed files with 4 additions and 0 deletions

View File

@@ -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);
}