]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
[mod_pgsql] err is now set correctly (dbh:last_error())
authorAron Podrigal <aronp@guaranteedplus.com>
Fri, 17 Jan 2025 15:51:45 +0000 (09:51 -0600)
committerGitHub <noreply@github.com>
Fri, 17 Jan 2025 15:51:45 +0000 (18:51 +0300)
commit5cb74797fe996b706be1dc29d1096c7baefdfbfb
tree3d6987a3d536e1b365d7ee0b310f7327b8de0f32
parent96de8fd37734599d997bcb9fdd2b076d9cfb026e
[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.
src/mod/databases/mod_pgsql/mod_pgsql.c