aboutsummaryrefslogtreecommitdiff
path: root/oracle
diff options
context:
space:
mode:
Diffstat (limited to 'oracle')
-rw-r--r--oracle/custom/driver.cxx5
-rw-r--r--oracle/database/driver.cxx3
-rw-r--r--oracle/native/driver.cxx5
-rw-r--r--oracle/template/driver.cxx5
-rw-r--r--oracle/types/driver.cxx9
5 files changed, 16 insertions, 11 deletions
diff --git a/oracle/custom/driver.cxx b/oracle/custom/driver.cxx
index 2425b29..16b81da 100644
--- a/oracle/custom/driver.cxx
+++ b/oracle/custom/driver.cxx
@@ -18,14 +18,15 @@
#include "test-odb.hxx"
using namespace std;
-using namespace odb::core;
+namespace oracle = odb::oracle;
+using namespace oracle;
int
main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ auto_ptr<database> db (create_specific_database<database> (argc, argv));
object o (1);
o.iv.push_back (123);
diff --git a/oracle/database/driver.cxx b/oracle/database/driver.cxx
index d6846b6..53dda69 100644
--- a/oracle/database/driver.cxx
+++ b/oracle/database/driver.cxx
@@ -7,7 +7,8 @@
#include <odb/oracle/database.hxx>
-using namespace odb::oracle;
+namespace oracle = odb::oracle;
+using namespace oracle;
int
main (int argc, char* argv[])
diff --git a/oracle/native/driver.cxx b/oracle/native/driver.cxx
index 0e90ff0..9530692 100644
--- a/oracle/native/driver.cxx
+++ b/oracle/native/driver.cxx
@@ -15,14 +15,15 @@
#include <common/common.hxx>
using namespace std;
-using namespace odb::core;
+namespace oracle = odb::oracle;
+using namespace oracle;
int
main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ auto_ptr<database> db (create_specific_database<database> (argc, argv));
// Create the database schema.
//
diff --git a/oracle/template/driver.cxx b/oracle/template/driver.cxx
index 44b4f83..35a2b39 100644
--- a/oracle/template/driver.cxx
+++ b/oracle/template/driver.cxx
@@ -18,14 +18,15 @@
#include "test-odb.hxx"
using namespace std;
-using namespace odb::core;
+namespace oracle = odb::oracle;
+using namespace oracle;
int
main (int argc, char* argv[])
{
try
{
- auto_ptr<database> db (create_database (argc, argv));
+ auto_ptr<database> db (create_specific_database<database> (argc, argv));
//
//
diff --git a/oracle/types/driver.cxx b/oracle/types/driver.cxx
index 7c3e6bd..be6251c 100644
--- a/oracle/types/driver.cxx
+++ b/oracle/types/driver.cxx
@@ -18,7 +18,8 @@
#include "test-odb.hxx"
using namespace std;
-using namespace odb::core;
+namespace oracle = odb::oracle;
+using namespace oracle;
int
main (int argc, char* argv[])
@@ -28,7 +29,7 @@ main (int argc, char* argv[])
// Create an Oracle database instance, setting both the client database
// and national character set to UTF-8.
//
- auto_ptr<database> db (create_database (argc, argv));
+ auto_ptr<database> db (create_specific_database<database> (argc, argv));
object o (1);
@@ -206,7 +207,7 @@ main (int argc, char* argv[])
// Test image copying with LOB data.
//
{
- typedef odb::query<blob> query;
+ typedef oracle::query<blob> query;
typedef odb::result<blob> result;
transaction t (db->begin ());
@@ -235,7 +236,7 @@ main (int argc, char* argv[])
// Test descriptor management in TIMESTAMP and INTERVAL images.
//
{
- typedef odb::query<object> query;
+ typedef oracle::query<object> query;
typedef odb::result<object> result;
query q (query::timestamp == o.timestamp_ &&