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

babelfish-for-postgresql / babelfish_extensions / 12391492564
74%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: BABEL-5577
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 18 Dec 2024 11:38AM 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

18 Dec 2024 10:53AM UTC coverage: 73.781% (+0.001%) from 73.78%
12391492564

push

github

web-flow
Fix transaction leak when DMLs contains a non pltsql language function which calls another non tsql function inside try catch (#3217) (#3273)

When DMLs are executed outside a user transaction block, babelfish starts an implicit transaction to handle errors inside triggers. This is done irrespective of whether the statement actually fires a trigger.
Now if the DML calls a non pltsql function which in calls another non tsql func or procedure inside a try catch, we do not properly decrement the pltsql_sys_func_entry_count variable properly. So the return value of pltsql_support_tsql_transactions() is different at beginning of the DML compared to after the end of the statement. This difference leads to babelfish not commit the implict transaction block.
As a fix, store the value of pltsql_support_tsql_transactions() at start of execution of DML and just reuse it for after execution.

Issues Resolved: [BABEL-5446]

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

9 of 9 new or added lines in 1 file covered. (100.0%)

43105 of 58423 relevant lines covered (73.78%)

147331.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12391492564.1 18 Dec 2024 11:38AM UTC 114
73.78
GitHub Action Run
Source Files on build 12391492564
  • Tree
  • List 114
  • Changed 60
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12391492564
  • ea633080 on github
  • Prev Build on BABEL_3_X_DEV (#12375791491)
  • Next Build on BABEL_3_X_DEV (#12391500641)
  • 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

© 2025 Coveralls, Inc