mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
The tests are expected to fail, because the value of an indicator, passed to the soci::values::set() function is replaced with the value returned from the type_conversion::to_base() function. Since it is possible that a valid value was passed alongside the i_null indicator, e.g., for setting an integer field to NULL, the type_conversion::to_base() function might return i_ok, as the default implementation of the function does. The problematic behaviour is not detected by the existing tests. Signed-off-by: Innokentiy Alaytsev <alaitsev@gmail.com>
soci/tests
SOCI tests using CATCH testing framework live here.
Currently one test is built for each backend, i.e. there are
soci_oracle_test, soci_postgresql_test, soci_sqlite3_test and so on and
for ODBC backend there are multiple versions of the test depending on the ODBC
driver used. Each of these tests can be run with a single parameter describing
the database to use for testing in the backend-specific way as well as any of
the standard CATCH command line options.