Avi Kivity
19a6e69001
cql3: accept and type-check reused named bind variables
...
A named bind-variable can be reused:
SELECT * FROM tab
WHERE a = :var AND b = :var
Currently, the grammar just ignores the possibility and creates
a new variable with the same name. The new variable cannot be
referenced by name since the first one shadows it.
Catch variable reuse by maintaining a map from bind variable names
to indexed, and check that when reusing a bind variable the types
match.
A unit test is added.
Fixes #10810
Closes #10813
2022-06-17 09:09:49 +02:00
..
2022-06-15 08:47:24 +02:00
2022-05-13 07:11:58 +02:00
2022-06-15 08:47:24 +02:00
2022-06-12 16:12:41 +03:00
2022-06-16 19:23:46 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-06-15 08:47:24 +02:00
2022-05-13 07:11:58 +02:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-06-16 10:57:12 +03:00
2022-06-02 13:11:05 +03:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-06-07 11:16:12 +02:00
2022-05-13 07:11:58 +02:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-06-17 09:09:49 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-06-15 08:47:24 +02:00
2022-06-15 08:47:24 +02:00
2022-06-15 08:47:24 +02:00
2022-06-15 08:47:24 +02:00
2022-05-13 07:11:58 +02:00
2022-06-15 08:47:24 +02:00
2022-05-13 07:11:58 +02:00
2022-06-17 09:09:49 +02:00
2022-05-13 07:11:58 +02:00
2022-02-24 19:46:10 +03:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-27 16:36:49 +02:00
2022-05-13 07:11:58 +02:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-06-15 08:47:24 +02:00
2022-06-15 08:47:24 +02:00
2022-02-01 21:14:41 +01:00
2022-03-04 14:18:34 +01:00
2022-01-18 12:15:18 +01:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-06-16 19:23:46 +03:00
2022-05-13 07:11:58 +02:00
2022-06-15 08:47:24 +02:00
2022-06-15 08:47:24 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-01-18 12:15:18 +01:00
2022-05-16 18:17:58 +02:00
2022-01-18 12:15:18 +01:00
2022-06-15 08:47:24 +02:00