aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-08 17:47:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-08 17:47:30 +0200
commitab9a9ff7ad45afedb2286d958e2126ab8ff33dd6 (patch)
treebf2be8c29777490efd285f827662c3245f8169a7
parenta01dd3b9381dd6856917e490fb4433578ae1d4f9 (diff)
Recognize WITH as beginning of complete query
-rw-r--r--odb/sqlite/query.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/sqlite/query.cxx b/odb/sqlite/query.cxx
index a1bc5ac..04ae043 100644
--- a/odb/sqlite/query.cxx
+++ b/odb/sqlite/query.cxx
@@ -208,7 +208,9 @@ namespace odb
s.compare (0, (n = 8), "GROUP BY") == 0 ||
s.compare (0, (n = 8), "group by") == 0 ||
s.compare (0, (n = 6), "HAVING") == 0 ||
- s.compare (0, (n = 6), "having") == 0)
+ s.compare (0, (n = 6), "having") == 0 ||
+ s.compare (0, (n = 4), "WITH") == 0 ||
+ s.compare (0, (n = 4), "with") == 0)
{
// It either has to be an exact match, or there should be
// a whitespace following the keyword.