Commit 2786891
committed
fix: thread original_sql through execute pipeline so RETURNING emulation fires
Two root causes for INSERT...RETURNING still returning [] after v1.5.5:
1. Execute handler fast-batch bypass checked has_returning on translated_query
(RETURNING stripped) → INSERT...RETURNING was batched, emulation skipped.
Fix: use original_query (pre-translation) for has_returning check.
2. _prepare_sql built ReturningPlan from optimized_sql (RETURNING stripped by
normalization pipeline) → plan.has_returning always False, emulation block
never entered. Fix: add original_sql param to _prepare_sql, thread it from
_execute_external_async, _execute_embedded_async, and execute_query.
Both paths (embedded + external) fixed. Bumps version to 1.5.6.1 parent eb5c174 commit 2786891
File tree
4 files changed
+53
-9
lines changed- src/iris_pgwire
4 files changed
+53
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| 630 | + | |
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
| |||
678 | 679 | | |
679 | 680 | | |
680 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
681 | 686 | | |
682 | | - | |
| 687 | + | |
683 | 688 | | |
684 | 689 | | |
685 | 690 | | |
| |||
998 | 1003 | | |
999 | 1004 | | |
1000 | 1005 | | |
1001 | | - | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1002 | 1009 | | |
1003 | 1010 | | |
1004 | | - | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1005 | 1014 | | |
1006 | 1015 | | |
1007 | 1016 | | |
| |||
2292 | 2301 | | |
2293 | 2302 | | |
2294 | 2303 | | |
2295 | | - | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
2296 | 2309 | | |
2297 | 2310 | | |
2298 | 2311 | | |
| |||
2354 | 2367 | | |
2355 | 2368 | | |
2356 | 2369 | | |
2357 | | - | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
2358 | 2375 | | |
2359 | 2376 | | |
2360 | 2377 | | |
| |||
2883 | 2900 | | |
2884 | 2901 | | |
2885 | 2902 | | |
2886 | | - | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
2887 | 2908 | | |
2888 | 2909 | | |
2889 | 2910 | | |
| |||
2910 | 2931 | | |
2911 | 2932 | | |
2912 | 2933 | | |
2913 | | - | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
2914 | 2939 | | |
2915 | 2940 | | |
2916 | 2941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3312 | 3312 | | |
3313 | 3313 | | |
3314 | 3314 | | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
3315 | 3318 | | |
3316 | 3319 | | |
3317 | 3320 | | |
| |||
3394 | 3397 | | |
3395 | 3398 | | |
3396 | 3399 | | |
3397 | | - | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
3398 | 3405 | | |
3399 | 3406 | | |
3400 | 3407 | | |
| |||
3432 | 3439 | | |
3433 | 3440 | | |
3434 | 3441 | | |
| 3442 | + | |
3435 | 3443 | | |
3436 | 3444 | | |
3437 | 3445 | | |
| |||
0 commit comments