From b3c8917441b54404d808d80e17e9dc55bae1e950 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 Oct 2011 15:19:22 +0200 Subject: Work around bug in Sun CC --- odb/mysql/makefile | 1 + odb/mysql/query-const-expr.cxx | 16 ++++++++++++++++ odb/mysql/query.cxx | 2 -- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 odb/mysql/query-const-expr.cxx diff --git a/odb/mysql/makefile b/odb/mysql/makefile index 19affbd..9644536 100644 --- a/odb/mysql/makefile +++ b/odb/mysql/makefile @@ -14,6 +14,7 @@ error.cxx \ exceptions.cxx \ object-statements.cxx \ query.cxx \ +query-const-expr.cxx \ statement.cxx \ statements-base.cxx \ transaction.cxx \ diff --git a/odb/mysql/query-const-expr.cxx b/odb/mysql/query-const-expr.cxx new file mode 100644 index 0000000..55daa23 --- /dev/null +++ b/odb/mysql/query-const-expr.cxx @@ -0,0 +1,16 @@ +// file : odb/mysql/query-const-expr.cxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#include + +namespace odb +{ + namespace mysql + { + // Sun CC cannot handle this in query.cxx. + // + const query query::true_expr (true); + } +} diff --git a/odb/mysql/query.cxx b/odb/mysql/query.cxx index 57ebc11..b313b0e 100644 --- a/odb/mysql/query.cxx +++ b/odb/mysql/query.cxx @@ -23,8 +23,6 @@ namespace odb // query // - const query query::true_expr (true); - query:: query (const query& q) : clause_ (q.clause_), -- cgit v1.1