Vadim Zeitlin 32ad8a4a08 Fix thread-safety of SQLite synchronous option unit test
This test was checking for thread-safety but was itself using in a
MT-unsafe way as it used Catch assertion macro from a thread without any
locking.

This could corrupt Catch internal state and crash, as it did in recently
re-enable AppVeyor CI tests.

Fix this by just storing the error messages in the test threads and
using Catch macros from the main thread only.

This fixes a problem introduced in ec00b69a (Amendments to the parent
commit, changing SQLite timeout setting, 2025-05-17).

See #1254.
2026-09-01 01:48:53 +02:00
2026-06-15 19:04:33 +02:00
2025-03-04 18:03:53 +01:00
2026-09-01 00:50:17 +02:00
2026-06-15 19:04:33 +02:00
2026-06-13 19:50:28 +02:00
2026-08-29 21:50:18 +02:00
2026-06-15 19:05:03 +02:00
2026-06-15 19:04:33 +02:00
2025-03-04 18:03:53 +01:00
2025-03-04 18:03:53 +01:00

SOCI - The C++ Database Access Library

GitHub release GitHub commits

Website SourceForge

Gitter Mailing Lists StackExchange

Build Status

Branches GitHub Actions AppVeyor-CI Documentation Coverity Scan
master Build Status Build status Docs Status Coverage
release/4.1 Build Status Build status Docs Status

History

Originally, SOCI was developed by Maciej Sobczak at CERN as abstraction layer for Oracle, a Simple Oracle Call Interface. Later, several database backends have been developed for SOCI, thus the long name has lost its practicality. Currently, if you like, SOCI may stand for Simple Open (Database) Call Interface or something similar.

"CERN is also a user of the SOCI library, which serves as a database access layer in some of the control system components."

-- Maciej Sobczak at Inspirel

License

SOCI library is distributed under the terms of the Boost Software License.

Requirements

Core:

  • Compiler with C++14 support (please use 4.0 series for C++98 support) or MSVS 2017 or later.
  • CMake 3.23 or later.
  • Optionally: Boost C++ Libraries (header-only and Boost.DateTime).

Backend specific client libraries for:

  • DB2
  • Firebird
  • MySQL / MariaDB
  • ODBC with specific database driver
  • Oracle
  • PostgreSQL
  • SQLite 3

See documentation at soci.sourceforge.net for details

BSL © Maciej Sobczak and contributors.

Description
Official repository of the SOCI - The C++ Database Access Library
Readme 62 MiB
Languages
C++ 89.7%
CMake 3.4%
Ada 3.3%
Shell 2.3%
HTML 0.9%
Other 0.3%