From 7d74507aacb63f77b763c940ef6fb6c82cb2445a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Jan 2012 09:50:11 +0200 Subject: Add SQL Server support --- hello/database.hxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'hello') diff --git a/hello/database.hxx b/hello/database.hxx index 532d602..7872297 100644 --- a/hello/database.hxx +++ b/hello/database.hxx @@ -27,6 +27,8 @@ # include #elif defined(DATABASE_ORACLE) # include +#elif defined(DATABASE_MSSQL) +# include #endif inline std::auto_ptr @@ -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 db (new odb::pgsql::database (argc, argv)); #elif defined(DATABASE_ORACLE) - auto_ptr db ( - new odb::oracle::database (argc, argv)); + auto_ptr db (new odb::oracle::database (argc, argv)); +#elif defined(DATABASE_MSSQL) + auto_ptr db (new odb::mssql::database (argc, argv)); #endif return db; -- cgit v1.1