summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-05-25 15:29:57 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-05-25 15:29:57 +0100
commit412d13e52a11bb7a1fcc02d8963f88b969b28b0b (patch)
tree7e363f10ecd2b1d8c68d7281d34f6977deac2691
parentWorkaround quirk with b2 package.install being called for many targets (diff)
downloadproject2-412d13e52a11bb7a1fcc02d8963f88b969b28b0b.tar.bz2
project2-412d13e52a11bb7a1fcc02d8963f88b969b28b0b.tar.xz
project2-412d13e52a11bb7a1fcc02d8963f88b969b28b0b.zip
ODBC gets its own schema file (which will be a simpler one than PQ which it uses
-rw-r--r--project2/sql/unittests/odbcschema.sql8
-rw-r--r--project2/sql/unittests/testodbc.cpp2
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" })
{
}
};