Files
soci/tests
Vadim Zeitlin da49415352 Fix behaviour of fetch() without any data with PostgreSQL
If execute() didn't bring any data from the server, all statement member
variables remained uninitialized, resulting in problems (UB, infinite
loops, ...) if fetch() is called later.

Fix this by initializing numberOfRows_ and checking for it in fetch()
and simply not doing anything there if it is 0.

Closes #1328.
2026-02-06 00:19:41 +01:00
..
2025-03-04 18:03:53 +01:00
2025-03-04 17:58:53 +01:00
2025-03-04 18:03:53 +01:00
2025-03-04 18:03:53 +01:00
2025-03-04 18:03:53 +01:00

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.