column_expression progress
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user