aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-08 08:44:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-08 08:44:00 +0200
commit04797e6426b8e0e4ff3c3110c0fadb7e755ef781 (patch)
tree3b3d4319a6c1ca5f1e8ffc184f6c3dbbf34da1c6 /odb
parent49ec6803444d857e1f666c41c516a56b8f1eb77a (diff)
Add note on need to recognize database-specific list of statement prefixes
Diffstat (limited to 'odb')
-rw-r--r--odb/relational/processor.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/relational/processor.cxx b/odb/relational/processor.cxx
index 508a5ee..b939f82 100644
--- a/odb/relational/processor.cxx
+++ b/odb/relational/processor.cxx
@@ -1181,6 +1181,11 @@ namespace relational
{
string q (upcase (vq.literal));
+ //@@ We need to recognize database-specific list of prefixes. For
+ // example, PG has WITH. Alternatively (or in addition) we could
+ // do the same comment trick (e.g., /*SELECT*/ to treat it as a
+ // SELECT-like queiry).
+ //
if (q.compare (0, 7, "SELECT ") == 0)
vq.kind = view_query::complete_select;
else if (q.compare (0, 5, "EXEC ") == 0 ||