2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-14 00:42:53 +00:00

Row reading reworks

- Removed distinction between row and owning_row
- Changed semantics for fetch_one to row& + bool
- Renamed all fetch_* fns to read_*
- Added row.clear()
This commit is contained in:
Ruben Perez
2021-02-19 21:23:40 +01:00
parent dd2447c6cb
commit 4c7ca0a1b4
38 changed files with 798 additions and 507 deletions

View File

@@ -76,7 +76,7 @@ BOOST_MYSQL_NETWORK_TEST(update_ok, network_fixture, network_ssl_gen)
result = sample.net->query(this->conn,
"SELECT field_int FROM updates_table WHERE field_varchar = 'f0'");
result.validate_no_error();
auto updated_value = result.value.fetch_all().at(0).values().at(0).template get<std::int64_t>();
auto updated_value = result.value.read_all().at(0).values().at(0).template get<std::int64_t>();
BOOST_TEST(updated_value == 52); // initial value was 42
}