Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mod_pgsql] err is now set correctly (dbh:last_error()) #2374

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

ar45
Copy link
Contributor

@ar45 ar45 commented Jan 30, 2024

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.

@signalwire-ci
Copy link

signalwire-ci bot commented Jan 30, 2024

@signalwire-ci
Copy link

signalwire-ci bot commented Jan 30, 2024

@signalwire-ci
Copy link

signalwire-ci bot commented Jan 30, 2024

@ar45 ar45 force-pushed the fix_mod_pgsql_err branch from a27ddb1 to 165055d Compare January 14, 2025 20:38
@ar45
Copy link
Contributor Author

ar45 commented Jan 14, 2025

@andywolk I rebased this. Can you please have this reviewed?

@ar45 ar45 requested a review from andywolk January 14, 2025 21:25
@ar45 ar45 force-pushed the fix_mod_pgsql_err branch from 7a19882 to 44e2b12 Compare January 14, 2025 22:50
@andywolk andywolk changed the title mod_pgsql: err is now set correctly (dbh:last_error()) [mod_pgsql] err is now set correctly (dbh:last_error()) Jan 15, 2025
@andywolk andywolk added the bug Something isn't working label Jan 15, 2025
ar45 added 2 commits January 17, 2025 17:40
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.
Ensure consistent formatting by adding missing newlines before `return` statements in error handling blocks. This improves code readability and maintains uniformity throughout the module.
@andywolk andywolk merged commit 5cb7479 into signalwire:master Jan 17, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants