mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Oracle and PostgreSQL tests creating sequences failed if ran two times in a row because they didn't clean up the sequence they created and tried to recreate an already existing sequence during the next run. Fix this by handling this in table_creator_base::drop() if the derived class passes an optional sequence name to the base class ctor. Replaces #1364.
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.