aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/sqlite/makefile1
-rw-r--r--odb/sqlite/query-const-expr.cxx16
-rw-r--r--odb/sqlite/query.cxx4
3 files changed, 17 insertions, 4 deletions
diff --git a/odb/sqlite/makefile b/odb/sqlite/makefile
index e9115a7..ae355a8 100644
--- a/odb/sqlite/makefile
+++ b/odb/sqlite/makefile
@@ -13,6 +13,7 @@ error.cxx \
exceptions.cxx \
object-statements.cxx \
query.cxx \
+query-const-expr.cxx \
result.cxx \
statement-cache.cxx \
statement.cxx \
diff --git a/odb/sqlite/query-const-expr.cxx b/odb/sqlite/query-const-expr.cxx
new file mode 100644
index 0000000..49c5a6c
--- /dev/null
+++ b/odb/sqlite/query-const-expr.cxx
@@ -0,0 +1,16 @@
+// file : odb/sqlite/query-const-expr.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#include <odb/sqlite/query.hxx>
+
+namespace odb
+{
+ namespace sqlite
+ {
+ // Sun CC cannot handle this in query.cxx.
+ //
+ const query query::true_expr (true);
+ }
+}
diff --git a/odb/sqlite/query.cxx b/odb/sqlite/query.cxx
index c3fd31e..222805b 100644
--- a/odb/sqlite/query.cxx
+++ b/odb/sqlite/query.cxx
@@ -128,10 +128,6 @@ namespace odb
// query
//
- // query
- //
- const query query::true_expr (true);
-
query::
query (const query& q)
: clause_ (q.clause_),