Fix types for SQLite3 backend

parent ed25eea2
......@@ -310,6 +310,28 @@ struct sqlite3_session_backend : details::session_backend
return "select name as \"TABLE_NAME\""
" from sqlite_master where type = 'table'";
virtual std::string create_column_type(data_type dt,
int , int )
switch (dt)
case dt_xml:
case dt_string:
return "text";
case dt_double:
return "real";
case dt_date:
case dt_integer:
case dt_long_long:
case dt_unsigned_long_long:
return "integer";
case dt_blob:
return "blob";
throw soci_error("this data_type is not supported in create_column");
sqlite_api::sqlite3 *conn_;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment