Commit 3e5ec3e
[BABEL] Fixes for Babelfish triggers after community commit c5fc17ddacc
Community commit c5fc17ddacc introduced a fix for CTEs with DMLs not
being inserted into the transition tables. For this fix, the previous
tcs_private field is now split into individual ins, upd and del field
each with the old and new tuplestore.
TSQL triggers are implicitly created with new "inserted" and old
"deleted" transition tables even for insert and delete triggers and both
are referenceble in the trigger function. With the splitting of the
tcs_private field we no longer intialize the old ins tuplestore and new
del tuplestore. However, since these transition tables are atleast
accessible from a TSQL trigger, we should have an empty tuplestore for both
of them anyway.
Since these will be empty as per behaviour of INSERT and DELETE triggers,
we are okay with simply creating an empty tuplestore for them.
Signed-off-by: Ayush Shah <ayushdsh@amazon.com>
cr: https://code.amazon.com/reviews/CR-2568591401 parent 054df65 commit 3e5ec3e
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5445 | 5445 | | |
5446 | 5446 | | |
5447 | 5447 | | |
| 5448 | + | |
| 5449 | + | |
| 5450 | + | |
| 5451 | + | |
| 5452 | + | |
| 5453 | + | |
| 5454 | + | |
| 5455 | + | |
| 5456 | + | |
| 5457 | + | |
| 5458 | + | |
| 5459 | + | |
| 5460 | + | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
5448 | 5467 | | |
5449 | 5468 | | |
5450 | 5469 | | |
| |||
0 commit comments