Commit 659c988
committed
Fix duplicate INSERT execution with RETURNING clause
Portal Describe was executing DML queries to get metadata, causing
INSERT/UPDATE/DELETE with RETURNING to run twice. Now uses synthetic
metadata for RETURNING clause and defers RowDescription to Execute
phase for RETURNING * pattern.
Fixes:
- v1.2.19: Prevent Describe Portal from executing DML
- v1.2.20: Handle RETURNING * by sending NoData in Describe
- v1.2.21: Send RowDescription in Execute when Describe sent NoData
Also includes:
- UUID extraction from INSERT for RETURNING emulation (v1.2.16)
- execute_many with RETURNING aggregation (v1.2.17)
- None→NULL parameter binding fix (v1.2.18)1 parent 8a548a8 commit 659c988
File tree
6 files changed
+927
-25
lines changed- src/iris_pgwire
- tests/unit
6 files changed
+927
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments