Aron Podrigal
5cb74797fe
[mod_pgsql] err is now set correctly (dbh:last_error())
...
New function, `void pgsql_handle_set_error_if_not_set(switch_pgsql_handle_t *handle, char **err)` has been added to mod_pgsql module. This function is now called at several points where an error occurred but *err was not yet set.
2025-01-17 18:51:45 +03:00
Aron Podrigal
7ed261b27b
[mod_pgsql] Add support for PGRES_TUPLES_CHUNK in PostgreSQL 17+
...
Extend the database module to handle the PGRES_TUPLES_CHUNK case introduced in PostgreSQL 17. This ensures compatibility with the latest PostgreSQL version and prevents potential issues when processing query results.
2025-01-15 01:03:49 +03:00
Andrey Volk
251da2f905
[mod_mariadb] mariadb_send_query: Coverity 1518917 Calling risky function
2024-07-31 16:04:38 +03:00
Andrey Volk
844cce8595
[mod_mariadb] Coverity 1546237 COPY_INSTEAD_OF_MOVE
2024-07-30 19:16:51 +03:00
Andrey Volk
6fbb49d66c
[mod_mariadb] mariadb_dsn: Coverity 1546237 COPY_INSTEAD_OF_MOVE
2024-07-30 17:36:14 +03:00
Andrey Volk
f5a41d3092
[mod_pgsql] Coverity: 1227660 Logically dead code
2023-10-05 18:05:32 +03:00
Sergei Rozhkov and Sergei Rozhkov
c5be6262b4
[mod_mariadb] Fix "DeadLock. The retries are over." message.
...
Co-authored-by: Sergei Rozhkov <git@zserg.ru >
2023-08-11 19:53:32 +03:00
Andrey Volk
64f8ff03be
[Core, mod_mariadb, mod_ilbc] Fix build on gcc 12.
2023-07-25 00:25:53 +03:00
Jakub Karolczyk
65b24c65db
[mod_pgsql] Coverity CID 1468401 (Resource leak)
2023-03-29 23:26:35 +01:00
Andrey Volk
92d2e0b136
[mod_pgsql] Fix build by using PG_VERSION_NUM provided by libpq instead of using POSTGRESQL_MAJOR_VERSION detected by freeswitch configure.
2022-01-11 18:44:36 +03:00
shaunjstokes
9f26a15220
[mod_pgsql] Add support for postgresql 14
2021-10-26 19:25:14 +03:00
Aron Podrigal
fddc6adf8d
[mod_pgsql] Use PQcmdTuples() to get number of effected rows to support UPDATE and INSERT without RETURNING.
2021-03-19 01:13:01 +03:00
Andrey Volk
c282386fdb
[mod_pgsql] Fix memory leek in the case of an empty string of err_str in pgsql_handle_exec_base_detailed()
2021-03-17 19:19:39 +03:00
Andrey Volk
785d92a5f5
[mod_pgsql] Prevent a stall of PQconsumeInput().
2021-03-16 23:22:11 +03:00
Andrey Volk
034a7eea5e
[mod_pgsql] Fix potential hang when calling PQconsumeInput() while checking if db_is_up().
2021-03-16 20:49:22 +03:00
Andrey Volk
940d82ef9b
[Build-System] Fix build with MSBuild.
2020-12-23 00:11:37 +04:00
Andrey Volk
0275ea1eb4
[Build-System] Use $(DefaultPlatformToolset) so it's easier to build using newer Microsoft Visual Studio versions.
2020-05-25 14:18:25 +04:00
Nathan Neulinger
477086b3e2
[mod_mariadb] Fix reconnect during db failover/restart
2020-03-23 20:55:00 +04:00
Andrey Volk
456a7fa8cc
[mod_pgsql,mod_mariadb] Fix scan-build warnings.
2020-02-26 01:48:40 +04:00
Andrey Volk
88f1a03cad
[mod_mariadb] Fix autocommit not flipping back to on when a transaction ends in mod_mariadb causing switch_cache_db_test_reactive() to fail.
2020-01-29 23:55:29 +04:00
Andrey Volk
3d650f4f69
[mod_pgsql] Fix autocommit not flipping back to on when a transaction ends in mod_pgsql causing switch_cache_db_test_reactive() to fail.
2020-01-29 23:55:17 +04:00
Andrey Volk
3fa1f3b76c
FS-11950: [mod_pgsql] Fix gcc8 errors replacing strncpy with snprintf.
2019-07-24 13:01:42 +04:00
Andrey Volk
4a2812aaf5
FS-11727: [mod_mariadb] Add MariaDB (MySQL) support
2019-07-23 20:07:16 +04:00
Andrey Volk
ccc4ae282a
FS-11880: [Core,mod_pgsql] Remove native PostgreSQL support from the core, add mod_pgsql database module.
2019-07-18 00:20:50 +04:00