You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pgsql library, null-by-reference handling in pg_execute, pg_send_query_params, pg_send_execute #13354
There is a bug in pg_execute, pg_send_query_params and pg_send_execute in the way it handles null values that makes it less reliable and error prone in a very counter-intuitive way and at the same time diverge from the behaviour of pg_query_params. The code below should offer a complete explanation.
pg_execute, null value: t
pg_execute, null value by reference: f
pg_query_params, null value: t
pg_query_params, null value by reference: t
pg_send_query_params, null value: t
pg_send_query_params, null value by reference: f
pg_send_execute, null value: t
pg_send_execute, null value by reference: f
Activity
devnexen commentedon Feb 8, 2024
Nice catch ! Would you mind create a PR ? If not you ll get due credit either way.
georgebarbarosie commentedon Feb 8, 2024
Will do
Fix GH-13354: ext/pgsql: pg_execute, pg_send_query_params and_send_ex…