From 7747c23059f28afe325cf43a27b4e9937cfd6959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Fri, 30 Sep 2022 19:54:53 +0200 Subject: [PATCH] Add comments in the unit tests on how to bind a NULL value --- tests/Statement_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Statement_test.cpp b/tests/Statement_test.cpp index 96e5ec1..0976ce1 100644 --- a/tests/Statement_test.cpp +++ b/tests/Statement_test.cpp @@ -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