From 412d13e52a11bb7a1fcc02d8963f88b969b28b0b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 25 May 2015 15:29:57 +0100 Subject: ODBC gets its own schema file (which will be a simpler one than PQ which it uses --- project2/sql/unittests/odbcschema.sql | 8 ++++++++ project2/sql/unittests/testodbc.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 project2/sql/unittests/odbcschema.sql diff --git a/project2/sql/unittests/odbcschema.sql b/project2/sql/unittests/odbcschema.sql new file mode 100644 index 0000000..96848eb --- /dev/null +++ b/project2/sql/unittests/odbcschema.sql @@ -0,0 +1,8 @@ +CREATE TABLE test( + id int, + fl numeric(5,2), + string text, + boolean bool, + dt timestamp without time zone, + ts interval); +INSERT INTO test VALUES(4, 123.45, 'some text', true, '2015-04-27 23:06:03', '1 day 14:13:12'); diff --git a/project2/sql/unittests/testodbc.cpp b/project2/sql/unittests/testodbc.cpp index 4fd8283..60db6ce 100644 --- a/project2/sql/unittests/testodbc.cpp +++ b/project2/sql/unittests/testodbc.cpp @@ -14,7 +14,7 @@ class StandardMockDatabase : public MockODBCDatabase { public: StandardMockDatabase() : MockODBCDatabase("Driver=postgresql;Database=postgres;uid=postgres;servername=/run/postgresql", "odbcmock", { - RootDir / "pqschema.sql" }) + RootDir / "odbcschema.sql" }) { } }; -- cgit v1.2.3