Closed daurnimator closed 9 years ago
Staring at the code side by side; it might be the 3rd parameter to get_sql_params
:
Compare: https://github.com/mbalmer/luapgsql/blob/9ce83ea9ee1502a377125fba96cc03466f5044ba/luapgsql.c#L439 vs https://github.com/mbalmer/luapgsql/blob/9ce83ea9ee1502a377125fba96cc03466f5044ba/luapgsql.c#L734
It also appears that the NULL check at https://github.com/mbalmer/luapgsql/blob/9ce83ea9ee1502a377125fba96cc03466f5044ba/luapgsql.c#L744 should be removed?
Can you recheck now that I fixed a blocking issue?
The NULL check is there in case calloc fauils (OOM)
The NULL check is there in case calloc fauils (OOM)
Yes, I figured the lack of it in conn_execParams
meant it was not required.
Actually it seems that it's missing in conn_execParams
.
In any case, d592d3f023efb298fde7c536305f4f6d3507f073 fixes the main issue reported here. Thanks @geoffleyland
Am 18.02.15 um 17:40 schrieb daurnimator:
The NULL check is there in case calloc fauils (OOM)
Yes, I figured the lack of it in |conn_execParams| meant it was not required. Actually it seems that it's /missing/ in |conn_execParams|.
— Reply to this email directly or view it on GitHub https://github.com/mbalmer/luapgsql/issues/18#issuecomment-74897497.
fixed.
fixed.
Thanks!