]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3436] fixed compilation
authorRazvan Becheriu <razvan@isc.org>
Mon, 27 May 2024 16:47:53 +0000 (19:47 +0300)
committerFrancis Dupont <fdupont@isc.org>
Wed, 19 Jun 2024 09:40:06 +0000 (09:40 +0000)
src/lib/pgsql/pgsql_exchange.h
src/lib/pgsql/tests/pgsql_exchange_unittest.cc

index 22ec7afe0ce278c9f6c10d5af131c090adb314b0..f97d29525cc60597cc44224d187444cea10bbb24 100644 (file)
@@ -386,7 +386,7 @@ struct PsqlBindArray {
         if (value.unspecified()) {
             addNull();
         } else {
-            add(value);
+            add(value.get());
         }
     }
 
index bf79ef851e82810287f1042775335a5f62d4331b..6b6200e8b99461b61e52518f19301842659d5bd4 100644 (file)
@@ -216,8 +216,8 @@ TEST(PsqlBindArray, addOptionalBool) {
     // Verify contents are correct.
     std::string expected =
         "0 : empty\n"
-        "1 : \"0\"\n"
-        "2 : \"1\"\n";
+        "1 : \"FALSE\"\n"
+        "2 : \"TRUE\"\n";
 
     EXPECT_EQ(expected, b.toText());
 }