mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
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:
committed by
Vadim Zeitlin
parent
1b3bd79d60
commit
ae07cd546e
@@ -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 (...)
|
||||
|
||||
Reference in New Issue
Block a user