[#1177] Add SQL Console module to jOOQ - bug fix in SQL request type detection for "with" clause.

This commit is contained in:
Chrriis 2012-03-08 12:44:53 +00:00
parent 62a76e8c53
commit 37de5082a9

View File

@ -76,7 +76,7 @@ public enum SqlQueryType {
if(index == -1) {
break;
}
queryLC = queryLC.trim();
queryLC = queryLC.substring(index + " as ".length()).trim();
if(!queryLC.startsWith("(")) {
break;
}