Add automatic type conversion to row::get()

Convert to the requested type if lossless conversion is possible to make
the behaviour more compatible with the previous SOCI versions and more
useful.

See #1127.
This commit is contained in:
Lukas Zanner
2024-02-25 00:28:16 +01:00
committed by Vadim Zeitlin
parent 1b3bd79d60
commit ae07cd546e
6 changed files with 509 additions and 38 deletions

View File

@@ -1161,7 +1161,7 @@ struct test_enum_with_explicit_custom_type_int_rowset : table_creator_base
try
{
sql << "CREATE TABLE soci_test( Type integer)";
sql << "CREATE TABLE soci_test( Type smallint)";
;
}
catch (...)