Description
See methods IgniteH2Indexing.executeSelectLocal and IgniteH2Indexing.executeSelectForDml. They both could be invoked for SELECT statements extracted from DML.
But notice how parameters are passed: it seems that we may pass parameters from DML statement unchanged, which is illegal. E.g. consider the following DML:
UPDATE table SET x=? WHERE x=?
In this case SELECT statement should get only the second parameter.
Need to create tests to confirm that this is the case and make necessary fixes if needed.
Attachments
Issue Links
- is related to
-
IGNITE-11227 SQL: Streamline DML execution logic
- Resolved
- links to