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 --- template/database.hxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'template') diff --git a/template/database.hxx b/template/database.hxx index 4d40696..c3088d2 100644 --- a/template/database.hxx +++ b/template/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