diff options
Diffstat (limited to 'project2/sql')
-rw-r--r-- | project2/sql/unittests/odbcschema.sql | 8 | ||||
-rw-r--r-- | project2/sql/unittests/testodbc.cpp | 2 |
2 files changed, 9 insertions, 1 deletions
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" }) { } }; |