Skip to content

Commit

Permalink
removed default labels and added dt_wstring back to deprecated data_type
Browse files Browse the repository at this point in the history
  • Loading branch information
bold84 committed Mar 31, 2024
1 parent 708613e commit a983010
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/soci/soci-backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enum db_type
enum data_type
{
dt_string, dt_date, dt_double, dt_integer, dt_long_long, dt_unsigned_long_long,
dt_blob, dt_xml
dt_blob, dt_xml, dt_wstring
};

// the enum type for indicator variables
Expand Down Expand Up @@ -108,8 +108,7 @@ inline db_type to_db_type(data_type dt)
case dt_unsigned_long_long: return db_uint64;
case dt_blob: return db_blob;
case dt_xml: return db_xml;
default:
throw soci_error("unsupported data_type");
case dt_wstring: return db_wstring;
}

// unreachable
Expand Down Expand Up @@ -264,6 +263,7 @@ class statement_backend
switch (dbt)
{
case db_string: return dt_string;
case db_wstring: return dt_wstring;
case db_date: return dt_date;
case db_double: return dt_double;
case db_int8:
Expand All @@ -276,8 +276,6 @@ class statement_backend
case db_uint64: return dt_unsigned_long_long;
case db_blob: return dt_blob;
case db_xml: return dt_xml;
default:
throw soci_error("unable to convert value to data_type");
}

// unreachable
Expand Down

0 comments on commit a983010

Please sign in to comment.