Skip to content

fix: parameter binding

Denis Smirnov requested to merge issue334 into main

We had a problem with the queries like:

select * from t1 where (a, b) in (select c, d from ...)

The root of the problem was that in a case of multiple references to the subquery ((a, b) in (ref_c_sq, ref_d_sq)) we tried to bind parameters multiple times that caused subtraction overflow and UB. As a fix we stop binding parameters more than once.

Co-authored-by: ms.evilhat ms.evilhat@gmail.com

For more details look at #334 (closed)

Edited by Denis Smirnov

Merge request reports