aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-09-06 11:23:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-09-06 11:23:07 +0200
commit75212d9609d2bfae1836d21347fc058914bbbfcd (patch)
tree4f7ce42cc7ed7312d24f7b63f487cd0ca0ebfe55
parent40cabcb9926e2e2bbeae24158c2b8efae4c0896a (diff)
Support using stored procedure call as complete query
-rw-r--r--odb/mysql/query.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mysql/query.cxx b/odb/mysql/query.cxx
index c81f80c..c53099f 100644
--- a/odb/mysql/query.cxx
+++ b/odb/mysql/query.cxx
@@ -178,7 +178,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), "CALL") == 0 ||
+ s.compare (0, (n = 4), "call") == 0)
{
// It either has to be an exact match, or there should be
// a whitespace following the keyword.