bind() arguments change

This commit is contained in:
Aleksandar Fabijanic
2008-02-08 21:21:20 +00:00
parent f7aa11c7f5
commit 78349bba1f
4 changed files with 12 additions and 16 deletions

View File

@@ -286,7 +286,7 @@ void SQLiteTest::testInsertCharPointer()
bind("Address"),
bind(133132));
free((void*) pc); pc = 0;
std::free((void*) pc); pc = 0;
assert (1 == stmt.execute());
tmp << "SELECT COUNT(*) FROM PERSON", into(count), now;
@@ -298,7 +298,6 @@ void SQLiteTest::testInsertCharPointer()
}
void SQLiteTest::testInsertCharPointer2()
{
Session tmp (SQLite::Connector::KEY, "dummy.db");
@@ -314,8 +313,8 @@ void SQLiteTest::testInsertCharPointer2()
tmp << "INSERT INTO PERSON VALUES(:ln, :fn, :ad, :age)",
bind("lastname"),
bind("firstname", "FN"),
bind("Address", "Addr"),
bind("firstname"),
bind("Address"),
bind(133132), now;
tmp << "SELECT COUNT(*) FROM PERSON", into(count), now;
assert (count == 1);