Allow with as start in queries for select type

This commit is contained in:
Clemens Schwaighofer committed 2018-07-12 18:36:43 +09:00
1 parent d5476b4269
commit 4d70f8a017
1 file changed
+1 -1
+1 -1
View File
@@ -466,7 +466,7 @@ class IO extends \CoreLibs\Basic
private function __checkQueryForSelect($query)
{
// perhaps allow spaces before select ?!?
if (!preg_match("/^(select|show) /i", $query)) {
if (!preg_match("/^(select|show|with) /i", $query)) {
return false;
}
return true;