Skip to content
Snippets Groups Projects
Verified Commit 87b26fe2 authored by Denis Smirnov's avatar Denis Smirnov
Browse files

fix: parameter binding


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: default avatarms.evilhat <ms.evilhat@gmail.com>
parent 1befa37f
No related branches found
No related tags found
Loading
Showing with 320 additions and 32 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment