column_expression progress

This commit is contained in:
2026-03-06 15:39:53 +01:00
parent 9b4738a5ff
commit 2aff0cabbb
20 changed files with 104 additions and 53 deletions
+5 -4
View File
@@ -143,7 +143,8 @@ TEST_CASE_METHOD( QueryFixture, "Test quoted identifier", "[query][quotes][ident
REQUIRE(row.value()->at("to").as<std::string>() == "London");
res = query::update("quotes")
.set({{"from", "Hamburg"}, {"to", "New York"}})
.set("from", "Hamburg")
.set("to", "New York")
.where("from"_col == "Berlin")
.execute(db);
REQUIRE(res.is_ok());
@@ -227,7 +228,7 @@ TEST_CASE_METHOD(QueryFixture, "Test quoted literals", "[query][quotes][literals
REQUIRE(row.value()->at("name").as<std::string>() == "text");
res = query::update("escapes")
.set({{"name", "text'd"}})
.set("name", "text'd")
.execute(db);
REQUIRE(res.is_ok());
REQUIRE(res->affected_rows == 1);
@@ -241,7 +242,7 @@ TEST_CASE_METHOD(QueryFixture, "Test quoted literals", "[query][quotes][literals
REQUIRE(row.value()->at("name").as<std::string>() == "text'd");
res = query::update("escapes")
.set({{"name", "text\nhello\tworld"}})
.set("name", "text\nhello\tworld")
.execute(db);
REQUIRE(res.is_ok());
REQUIRE(res->affected_rows == 1);
@@ -255,7 +256,7 @@ TEST_CASE_METHOD(QueryFixture, "Test quoted literals", "[query][quotes][literals
REQUIRE(row.value()->at("name").as<std::string>() == "text\nhello\tworld");
res = query::update("escapes")
.set({{"name", "text \"text\""}})
.set("name", "text \"text\"")
.execute(db);
REQUIRE(res.is_ok());
REQUIRE(res->affected_rows == 1);