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/mysql | |
parent | 2ca4828d303fdd27c573429910f7a25fd1e3727c (diff) |
Implement join types support in views
Diffstat (limited to 'odb/relational/mysql')
-rw-r--r-- | odb/relational/mysql/source.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/odb/relational/mysql/source.cxx b/odb/relational/mysql/source.cxx index bcc7f23..9725f18 100644 --- a/odb/relational/mysql/source.cxx +++ b/odb/relational/mysql/source.cxx @@ -681,6 +681,19 @@ namespace relational { os << im << "value = 0;"; } + + virtual string + join_syntax (view_object const& vo) + { + if (vo.join == view_object::full) + { + error (vo.loc) + << "FULL OUTER JOIN is not supported by MySQL" << endl; + throw operation_failed (); + } + + return base::join_syntax (vo); + } }; entry<class_> class_entry_; |