Commit 88632d9
committed
Heap-allocate insert_exec_ctx with NULL guards, resolve unqualified target
schema via the user's default schema, remove the unnecessary LockRelationOid
try/catch, clean up the column-count probe error handling, and guard
table-variable cleanup against an aborted transaction (fixes an
IsTransactionState() crash on the INSERT EXEC error path in a function).
Adds same-session DDL detection tests.1 parent 4d2541a commit 88632d9
7 files changed
Lines changed: 522 additions & 151 deletions
File tree
- contrib
- babelfishpg_tds/src/backend/tds
- babelfishpg_tsql/src
- test/JDBC
- expected
- input
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2708 | 2708 | | |
2709 | 2709 | | |
2710 | 2710 | | |
2711 | | - | |
2712 | | - | |
2713 | | - | |
2714 | | - | |
2715 | | - | |
2716 | | - | |
2717 | | - | |
| 2711 | + | |
| 2712 | + | |
2718 | 2713 | | |
2719 | 2714 | | |
2720 | 2715 | | |
| |||
2742 | 2737 | | |
2743 | 2738 | | |
2744 | 2739 | | |
| 2740 | + | |
2745 | 2741 | | |
2746 | 2742 | | |
2747 | 2743 | | |
2748 | 2744 | | |
2749 | 2745 | | |
2750 | 2746 | | |
2751 | 2747 | | |
2752 | | - | |
| 2748 | + | |
2753 | 2749 | | |
2754 | 2750 | | |
2755 | 2751 | | |
2756 | 2752 | | |
2757 | | - | |
| 2753 | + | |
2758 | 2754 | | |
2759 | 2755 | | |
2760 | 2756 | | |
| |||
2764 | 2760 | | |
2765 | 2761 | | |
2766 | 2762 | | |
2767 | | - | |
| 2763 | + | |
2768 | 2764 | | |
2769 | 2765 | | |
2770 | 2766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3658 | 3658 | | |
3659 | 3659 | | |
3660 | 3660 | | |
3661 | | - | |
3662 | | - | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
3663 | 3665 | | |
3664 | 3666 | | |
3665 | 3667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
1624 | 1628 | | |
| 1629 | + | |
1625 | 1630 | | |
1626 | 1631 | | |
1627 | 1632 | | |
| |||
0 commit comments