• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 10058794655
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: jira-babel-6270
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 23 Jul 2024 01:15PM UTC
Jobs 1
Files 114
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jul 2024 12:21PM UTC coverage: 73.217% (-0.001%) from 73.218%
10058794655

push

github

web-flow
Fix error when OUTPUT INTO table variable statement fires trigger (#2639)

Fix error portal snapshots (1) did not account for all active snapshots (2) when OUTPUT INTO table variable statement fires triggers.

pltsql statements that could fire trigger must always run inside a transaction block. If a txn block is not active, we create one. We exclude some types of statements from this, one of them being DML on table variables since they can never fire a trigger. We detect this using the variable mod_stmt_tablevar.

Now an edge case here is OUTPUT into table variable stmt. Which we internally transform into two DML nodes.
TOP INSERT NODE (signifies the output into clause)
Another DELETE / UPDATE / INSERT node inside the top insert node -> with clause (specifies the first part of the output into clause )
As a fix we simply skip transaction commands inside pltsql UDFs and not rely on mod_stmt_tablevar on anymore.

Also blocked certain cases of OUTPUT clause which should not be allowed inside pltsql UDFs.

    OUTPUT clause flushes results to client (INTO clause is missing)
    OUTPUT INTO clause has a non local object as its target. (UDFs only allow DML on local objects)

Issues Resolved: BABEL-4859

Signed-off-by: Tanzeel Khan tzlkhan@amazon.com

11 of 11 new or added lines in 2 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

42903 of 58597 relevant lines covered (73.22%)

114262.88 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
74.29
-0.63% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
Jobs
ID Job ID Ran Files Coverage
1 10058794655.1 23 Jul 2024 01:15PM UTC 114
73.22
GitHub Action Run
Source Files on build 10058794655
  • Tree
  • List 114
  • Changed 65
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10058794655
  • 6ac43eee on github
  • Prev Build on BABEL_4_X_DEV (#10041751303)
  • Next Build on BABEL_4_X_DEV (#10063149158)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc