Added a minimal test for Statement::getExtendedSQL()

- there is nothing conditional here in the wrapper
This commit is contained in:
Oleg Smolsky 2019-06-18 09:42:35 -07:00
parent ce45099695
commit 7dba62bcf1

View File

@ -252,6 +252,7 @@ TEST(Statement, bindings) {
insert.bind(1, text);
insert.bind(2, integer);
insert.bind(3, dbl);
EXPECT_EQ(insert.getExtendedSQL(), "INSERT INTO test VALUES (NULL, 'first', -123, 0.123)");
EXPECT_EQ(1, insert.exec());
EXPECT_EQ(SQLITE_DONE, db.getErrorCode());