diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-16 09:50:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-16 09:50:11 +0200 |
commit | 7d74507aacb63f77b763c940ef6fb6c82cb2445a (patch) | |
tree | 9d92e44fd3a5de7a5463b170e5e0a9831d46abeb /relationship | |
parent | 24f87489a4d315cc01ca9d49a3f0209522fe6729 (diff) |
Add SQL Server support
Diffstat (limited to 'relationship')
-rw-r--r-- | relationship/database.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/relationship/database.hxx b/relationship/database.hxx index 1617709..2f64e06 100644 --- a/relationship/database.hxx +++ b/relationship/database.hxx @@ -27,6 +27,8 @@ # include <odb/pgsql/database.hxx> #elif defined(DATABASE_ORACLE) # include <odb/oracle/database.hxx> +#elif defined(DATABASE_MSSQL) +# include <odb/mssql/database.hxx> #endif inline std::auto_ptr<odb::database> @@ -48,6 +50,8 @@ create_database (int& argc, char* argv[]) odb::pgsql::database::print_usage (cerr); #elif defined(DATABASE_ORACLE) odb::oracle::database::print_usage (cerr); +#elif defined(DATABASE_MSSQL) + odb::mssql::database::print_usage (cerr); #endif exit (0); @@ -78,8 +82,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)); + auto_ptr<database> db (new odb::oracle::database (argc, argv)); +#elif defined(DATABASE_MSSQL) + auto_ptr<database> db (new odb::mssql::database (argc, argv)); #endif return db; |