diff options
Diffstat (limited to 'inheritance')
-rw-r--r-- | inheritance/database.hxx | 7 | ||||
-rw-r--r-- | inheritance/makefile | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/inheritance/database.hxx b/inheritance/database.hxx index af683a7..85605b8 100644 --- a/inheritance/database.hxx +++ b/inheritance/database.hxx @@ -25,6 +25,8 @@ # include <odb/sqlite/database.hxx> #elif defined(DATABASE_PGSQL) # include <odb/pgsql/database.hxx> +#elif defined(DATABASE_ORACLE) +# include <odb/oracle/database.hxx> #endif inline std::auto_ptr<odb::database> @@ -44,6 +46,8 @@ create_database (int& argc, char* argv[]) odb::sqlite::database::print_usage (cerr); #elif defined(DATABASE_PGSQL) odb::pgsql::database::print_usage (cerr); +#elif defined(DATABASE_ORACLE) + odb::oracle::database::print_usage (cerr); #endif exit (0); @@ -73,6 +77,9 @@ create_database (int& argc, char* argv[]) } #elif defined(DATABASE_PGSQL) auto_ptr<database> db (new odb::pgsql::database (argc, argv)); +#elif defined(DATABASE_ORACLE) + auto_ptr<database> db ( + new odb::oracle::database (argc, argv, false, 873, 873)); #endif return db; diff --git a/inheritance/makefile b/inheritance/makefile index 27e0bc2..02e057a 100644 --- a/inheritance/makefile +++ b/inheritance/makefile @@ -47,7 +47,7 @@ gen := $(addprefix $(out_base)/,$(genf)) $(gen): $(odb) $(gen): odb := $(odb) $(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \ ---generate-query --table-prefix inheritance_ +--generate-query --table-prefix i_ $(gen): cpp_options := -I$(src_base) $(gen): $(odb.l.cpp-options) |