mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Fixed Travis test for SQLite < 3.7.11
- Ubuntu 12.04 LTS uses SQLite 3.7.9
This commit is contained in:
parent
bf4614ddb6
commit
f3023c0b62
@ -111,10 +111,12 @@ TEST(Database, ctorExecAndGet) {
|
||||
EXPECT_EQ(2, db.getLastInsertRowid());
|
||||
EXPECT_EQ(7, db.getTotalChanges());
|
||||
|
||||
// insert two rows with only one statement => returns 2
|
||||
#if (SQLITE_VERSION_NUMBER >= 3007011)
|
||||
// insert two rows with only one statement (starting with SQLite 3.7.11) => returns 2
|
||||
EXPECT_EQ(2, db.exec("INSERT INTO test VALUES (NULL, \"third\"), (NULL, \"fourth\");"));
|
||||
EXPECT_EQ(4, db.getLastInsertRowid());
|
||||
EXPECT_EQ(9, db.getTotalChanges());
|
||||
#endif
|
||||
|
||||
} // Close DB test.db3
|
||||
remove("test.db3");
|
||||
|
Loading…
x
Reference in New Issue
Block a user