From 1f14eecfed1303d5d7bf5febcba29e06c2d19d9e Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 26 Oct 2011 10:05:25 +0200 Subject: Quote schema object identifiers for Oracle where necessary Oracle converts all alphabetical characters in unquoted schema object identifiers to uppercase. This behaviour cannot be disabled. --- common/callback/driver.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/callback') diff --git a/common/callback/driver.cxx b/common/callback/driver.cxx index 5f2c258..76dbda4 100644 --- a/common/callback/driver.cxx +++ b/common/callback/driver.cxx @@ -14,6 +14,7 @@ #include #include +#include // DATABASE_XXX #include "test.hxx" #include "test-odb.hxx" @@ -93,8 +94,14 @@ main (int argc, char* argv[]) typedef odb::result result; transaction t (db->begin ()); + +#ifndef DATABASE_ORACLE result r (db->query ( (query::id < 3) + "ORDER BY callback_object.id")); +#else + result r (db->query ( + (query::id < 3) + "ORDER BY \"callback_object\".\"id\"")); +#endif for (result::iterator i (r.begin ()); i != r.end (); ++i) { -- cgit v1.1