Skip to content

Commit

Permalink
fixes for sqlite3 on ubuntu gcc 12
Browse files Browse the repository at this point in the history
  • Loading branch information
bold84 committed Mar 22, 2024
1 parent a2fa9c9 commit 371804f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backends/sqlite3/statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ sqlite3_statement_backend::load_rowset(int totalRows)

case db_xml:
throw soci_error("XML data type is not supported");
case db_wstring:
throw soci_error("Wide string data type is not supported");
}
}
}
Expand Down Expand Up @@ -336,6 +338,8 @@ sqlite3_statement_backend::bind_and_execute(int number)

case db_xml:
throw soci_error("XML data type is not supported");
case db_wstring:
throw soci_error("Wide string data type is not supported");
}
}

Expand Down
10 changes: 10 additions & 0 deletions src/backends/sqlite3/vector-into-type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ void set_number_in_vector(void *p, int idx, const sqlite3_column &col)

case db_xml:
throw soci_error("XML data type is not supported");
case db_wstring:
throw soci_error("Wide string data type is not supported");
};
}

Expand Down Expand Up @@ -243,6 +245,8 @@ void sqlite3_vector_into_type_backend::post_fetch(bool gotData, indicator * ind)

case db_xml:
throw soci_error("XML data type is not supported");
case db_wstring:
throw soci_error("Wide string data type is not supported");
};
break;
} // x_char
Expand Down Expand Up @@ -325,6 +329,9 @@ void sqlite3_vector_into_type_backend::post_fetch(bool gotData, indicator * ind)
set_in_vector(data_, i, xml);
break;
}

case db_wstring:
throw soci_error("Wide string data type is not supported");
};
break;
} // x_stdstring
Expand Down Expand Up @@ -409,6 +416,7 @@ void sqlite3_vector_into_type_backend::post_fetch(bool gotData, indicator * ind)
case db_uint32:
case db_int64:
case db_uint64:
case db_wstring:
throw soci_error("Into element used with non-convertible type.");

case db_xml:
Expand Down Expand Up @@ -444,6 +452,8 @@ void sqlite3_vector_into_type_backend::post_fetch(bool gotData, indicator * ind)

case db_xml:
throw soci_error("XML data type is not supported");
case db_wstring:
throw soci_error("Wide string data type is not supported");
}
}
}
Expand Down

0 comments on commit 371804f

Please sign in to comment.