From 166f1c0b0ae6597ac451117d62154bf9ec84176e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Jul 2014 12:56:37 +0200 Subject: Support stored procedure execution in native views with runtime query --- odb/mssql/query.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- cgit v1.1