aboutsummaryrefslogtreecommitdiff
path: root/mssql/types/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-18 14:34:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-20 15:45:47 +0200
commit092163ffe44f64387508a0770948636f79ae139d (patch)
tree1f4817af1d2462424ff4e4f9d7b76f8f59fb3d7b /mssql/types/driver.cxx
parent605e4dee303f2a7b3b493e7a73faa09e61d88839 (diff)
Add support for configuring test suite with additional macros
Diffstat (limited to 'mssql/types/driver.cxx')
-rw-r--r--mssql/types/driver.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/mssql/types/driver.cxx b/mssql/types/driver.cxx
index 3cef5ad..db814e2 100644
--- a/mssql/types/driver.cxx
+++ b/mssql/types/driver.cxx
@@ -78,14 +78,18 @@ main (int argc, char* argv[])
o.mvbin_.assign (ldata.begin (), ldata.end ());
o.image_.assign (ldata.begin (), ldata.end ());
+#if !defined(MSSQL_SERVER_VERSION) || MSSQL_SERVER_VERSION >= 1000
o.date_ = date_time (2011, 12, 20, 0, 0, 0, 0, 0, 0);
o.time7_ = date_time (0, 0, 0, 13, 34, 39, 123456789, 0, 0);
o.time4_ = date_time (0, 0, 0, 13, 34, 39, 123456700, 0, 0);
+#endif
o.sdt_ = date_time (2011, 12, 20, 15, 44, 29, 123456700, 0, 0);
o.dt_ = date_time (2011, 12, 20, 15, 44, 29, 123456700, 0, 0);
+#if !defined(MSSQL_SERVER_VERSION) || MSSQL_SERVER_VERSION >= 1000
o.dt2_ = date_time (2011, 12, 20, 15, 44, 29, 123456700, 0, 0);
o.dto7_ = date_time (2011, 12, 20, 15, 44, 29, 123456700, 2, 0);
o.dto0_ = date_time (2011, 12, 20, 15, 44, 29, 123456700, 2, 0);
+#endif
#ifdef _WIN32
// 6F846D41-C89A-4E4D-B22F-56443CFA543F
@@ -103,11 +107,15 @@ main (int argc, char* argv[])
t.commit ();
}
+#if !defined(MSSQL_SERVER_VERSION) || MSSQL_SERVER_VERSION >= 1000
o.time7_ = date_time (0, 0, 0, 13, 34, 39, 123456700, 0, 0);
o.time4_ = date_time (0, 0, 0, 13, 34, 39, 123400000, 0, 0);
+#endif
o.sdt_ = date_time (2011, 12, 20, 15, 44, 0, 0, 0, 0);
o.dt_ = date_time (2011, 12, 20, 15, 44, 29, 123000000, 0, 0);
+#if !defined(MSSQL_SERVER_VERSION) || MSSQL_SERVER_VERSION >= 1000
o.dto0_ = date_time (2011, 12, 20, 15, 44, 29, 0, 2, 0);
+#endif
// Load.
//