mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Added a minimal test for Statement::getExtendedSQL()
- there is nothing conditional here in the wrapper
This commit is contained in:
parent
ce45099695
commit
7dba62bcf1
@ -252,6 +252,7 @@ TEST(Statement, bindings) {
|
|||||||
insert.bind(1, text);
|
insert.bind(1, text);
|
||||||
insert.bind(2, integer);
|
insert.bind(2, integer);
|
||||||
insert.bind(3, dbl);
|
insert.bind(3, dbl);
|
||||||
|
EXPECT_EQ(insert.getExtendedSQL(), "INSERT INTO test VALUES (NULL, 'first', -123, 0.123)");
|
||||||
EXPECT_EQ(1, insert.exec());
|
EXPECT_EQ(1, insert.exec());
|
||||||
EXPECT_EQ(SQLITE_DONE, db.getErrorCode());
|
EXPECT_EQ(SQLITE_DONE, db.getErrorCode());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user