From f5e457f5dee11cbd20fc3557f79d6e1f235fb89f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 6 Feb 2015 08:57:30 +0200 Subject: Implement join types support in views --- odb/relational/mysql/source.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'odb/relational/mysql') 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_entry_; -- cgit v1.1