mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 07:14:46 +02:00
bind() arguments change
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user