mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Support for CREATE SCHEMA
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@392 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -30,7 +30,7 @@ if (!$error && $_POST && is_string($query = (isset($_POST["query"]) ? $_POST["qu
|
||||
if (is_object($result)) {
|
||||
select($result);
|
||||
} else {
|
||||
if (preg_match("~^\\s*(CREATE|DROP)(\\s+|/\\*.*\\*/|(#|-- )[^\n]*\n)+DATABASE\\b~isU", $query)) {
|
||||
if (preg_match("~^\\s*(CREATE|DROP)(\\s+|/\\*.*\\*/|(#|-- )[^\n]*\n)+(DATABASE|SCHEMA)\\b~isU", $query)) {
|
||||
unset($_SESSION["databases"][$_GET["server"]]);
|
||||
}
|
||||
echo "<p class='message'>" . lang('Query executed OK, %d row(s) affected.', $mysql->affected_rows) . "</p>\n";
|
||||
|
Reference in New Issue
Block a user