Commit Graph

6 Commits

Author SHA1 Message Date
Vadim Zeitlin
4d29d9799c Show time taken for the query to fail in "Reconnect" unit test
This allows to confirm that tcp_user_timeout parameter works correctly
for PostgreSQL connections, as specifying different values for it
results in different elapsed time before the query fails.
2025-06-12 02:02:53 +02:00
Vadim Zeitlin
c35b1b6a77 Avoid disabling MSVC CRT security warnings globally
Use "_s" versions of the standard C functions if possible/simple to do
and disable deprecation warnings explicitly in a couple of places where
this could not be done instead of disabling them globally.

Also stop using strcpy() entirely and use strncpy() instead.

See #1268.
2025-06-08 02:49:21 +02:00
Vadim Zeitlin
93ddffb05f Add functions returning native error description to soci_error
Allow handling backend-specific errors without including
backend-specific headers.
2025-04-23 01:33:23 +02:00
Vadim Zeitlin
fe29161c2c Add a simple pseudo-test for interactive SQL execution
This can be used to check that an SQL statement results in the expected
error.
2025-04-22 18:55:45 +02:00
Vadim Zeitlin
fb04446e35 Convert most HTTP links to HTTPS
No real changes, but it's not very serious to use HTTP links in 2025.
2025-03-04 18:03:53 +01:00
Vadim Zeitlin
6e34edf882 Extract manual tests not run by default into their own file
No real changes, just move more tests in a separate file.
2024-11-06 17:39:54 +01:00