diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-06 08:57:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-06 08:57:30 +0200 |
commit | f5e457f5dee11cbd20fc3557f79d6e1f235fb89f (patch) | |
tree | 17b21ea5494e37aea6a336284990ebb6424466e8 /odb/relational/sqlite | |
parent | 2ca4828d303fdd27c573429910f7a25fd1e3727c (diff) |
Implement join types support in views
Diffstat (limited to 'odb/relational/sqlite')
-rw-r--r-- | odb/relational/sqlite/source.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/odb/relational/sqlite/source.cxx b/odb/relational/sqlite/source.cxx index 0824eb2..0e842c1 100644 --- a/odb/relational/sqlite/source.cxx +++ b/odb/relational/sqlite/source.cxx @@ -255,6 +255,25 @@ namespace relational // return ""; } + + virtual string + join_syntax (view_object const& vo) + { + const char* n (0); + + if (vo.join == view_object::full) + n = "FULL OUTER JOIN"; + else if (vo.join == view_object::right) + n = "RIGHT OUTER JOIN"; + + if (n != 0) + { + error (vo.loc) << n << " is not supported by SQLite" << endl; + throw operation_failed (); + } + + return base::join_syntax (vo); + } }; entry<class_> class_entry_; } |