mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-05 10:16:01 -04:00
Add comments in the unit tests on how to bind a NULL value
This commit is contained in:
parent
420113e912
commit
7747c23059
@ -353,7 +353,7 @@ TEST(Statement, bindings)
|
||||
{
|
||||
const char buffer[] = "binary";
|
||||
insert.bind(1, buffer, sizeof(buffer));
|
||||
insert.bind(2);
|
||||
insert.bind(2); // bind a NULL value
|
||||
EXPECT_EQ(1, insert.exec());
|
||||
|
||||
// Check the result
|
||||
@ -520,7 +520,7 @@ TEST(Statement, bindByName)
|
||||
{
|
||||
const char buffer[] = "binary";
|
||||
insert.bind("@msg", buffer, sizeof(buffer));
|
||||
insert.bind("@int");
|
||||
insert.bind("@int"); // bind a NULL value
|
||||
EXPECT_EQ(1, insert.exec());
|
||||
|
||||
// Check the result
|
||||
@ -633,7 +633,7 @@ TEST(Statement, bindByNameString)
|
||||
{
|
||||
const char buffer[] = "binary";
|
||||
insert.bind(amsg, buffer, sizeof(buffer));
|
||||
insert.bind(aint);
|
||||
insert.bind(aint); // bind a NULL value
|
||||
EXPECT_EQ(1, insert.exec());
|
||||
|
||||
// Check the result
|
||||
|
Loading…
x
Reference in New Issue
Block a user