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 8226ba02bd

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;