summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-09-04 14:42:35 +0200
committerMichal Čihař <michal@cihar.com>2017-09-04 14:43:18 +0200
commit36f1918b1543b4438b5d14ed3456a2ce19c3ff01 (patch)
treef28030a9ed431c1bc26ce521c73a4429a9f86a50
parent813231efe3b2439022d53313708fc8ddf9764630 (diff)
downloadsql-parser-36f1918b1543b4438b5d14ed3456a2ce19c3ff01.zip
sql-parser-36f1918b1543b4438b5d14ed3456a2ce19c3ff01.tar.gz
sql-parser-36f1918b1543b4438b5d14ed3456a2ce19c3ff01.tar.bz2
Always initialize querytype flag
This avoids problems later when using it to detect handling of query. Fixes https://github.com/phpmyadmin/phpmyadmin/issues/13640 Signed-off-by: Michal Čihař <michal@cihar.com>
-rw-r--r--src/Utils/Query.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils/Query.php b/src/Utils/Query.php
index 0d53920..0115bbf 100644
--- a/src/Utils/Query.php
+++ b/src/Utils/Query.php
@@ -293,7 +293,7 @@ class Query
*/
public static function getFlags($statement, $all = false)
{
- $flags = array();
+ $flags = array('querytype' => false);
if ($all) {
$flags = self::$ALLFLAGS;
}