aboutsummaryrefslogtreecommitdiff
path: root/common/view/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/view/driver.cxx')
-rw-r--r--common/view/driver.cxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/common/view/driver.cxx b/common/view/driver.cxx
index b671e46..f6dd613 100644
--- a/common/view/driver.cxx
+++ b/common/view/driver.cxx
@@ -59,7 +59,11 @@ view2_test (const auto_ptr<database>& db)
}
{
- result r (db->query<V> (query::age + " < 31"));
+#ifndef DATABASE_ORACLE
+ result r (db->query<V> ("age < 31"));
+#else
+ result r (db->query<V> ("\"age\" < 31"));
+#endif
iterator i (r.begin ());
assert (i != r.end ());
@@ -87,10 +91,11 @@ view4_test (const auto_ptr<database>& db)
transaction t (db->begin ());
{
- result r (db->query<V> (
- (query::person::age > 30) +
- "ORDER BY " +
- query::person::age));
+#ifndef DATABASE_ORACLE
+ result r (db->query<V> ((query::person::age > 30) + "ORDER BY age"));
+#else
+ result r (db->query<V> ((query::person::age > 30) + "ORDER BY \"age\""));
+#endif
iterator i (r.begin ());
@@ -108,8 +113,7 @@ view4_test (const auto_ptr<database>& db)
{
result r (db->query<V> (
(query::person::age > 30) +
- "ORDER BY " +
- query::person::age));
+ "ORDER BY " + query::person::age));
iterator i (r.begin ());