aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-07-09 12:56:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-07-09 12:56:37 +0200
commit166f1c0b0ae6597ac451117d62154bf9ec84176e (patch)
treef491cf64461bc45c377b35fb7bda43f883f536d6
parentfd5311fddd134f7a998b29952b32e3d721b7f544 (diff)
Support stored procedure execution in native views with runtime query
-rw-r--r--odb/mssql/query.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/mssql/query.cxx b/odb/mssql/query.cxx
index faef6f7..b5b78d6 100644
--- a/odb/mssql/query.cxx
+++ b/odb/mssql/query.cxx
@@ -178,7 +178,11 @@ 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), "EXEC") == 0 ||
+ s.compare (0, (n = 4), "exec") == 0 ||
+ s.compare (0, (n = 7), "EXECUTE") == 0 ||
+ s.compare (0, (n = 7), "execute") == 0)
{
// It either has to be an exact match, or there should be
// a whitespace following the keyword.