Allow with as start in queries for select type

This commit is contained in:
Clemens Schwaighofer
2018-07-12 18:36:43 +09:00
parent d5476b4269
commit 4d70f8a017

View File

@@ -466,7 +466,7 @@ class IO extends \CoreLibs\Basic
private function __checkQueryForSelect($query) private function __checkQueryForSelect($query)
{ {
// perhaps allow spaces before select ?!? // perhaps allow spaces before select ?!?
if (!preg_match("/^(select|show) /i", $query)) { if (!preg_match("/^(select|show|with) /i", $query)) {
return false; return false;
} }
return true; return true;