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

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

Build:
Build:
LAST BUILD BRANCH: BABEL-5577
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 18 Dec 2024 11:29AM UTC
Jobs 1
Files 115
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: 74.859% (-0.001%) from 74.86%
12391490983

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) (#3272)

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%)

1 existing line in 1 file now uncovered.

46662 of 62333 relevant lines covered (74.86%)

164762.58 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.66
-0.21% contrib/babelfishpg_tds/src/backend/tds/tdsutils.c
Jobs
ID Job ID Ran Files Coverage
1 12391490983.1 18 Dec 2024 11:29AM UTC 115
74.86
GitHub Action Run
Source Files on build 12391490983
  • Tree
  • List 115
  • Changed 69
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12391490983
  • cf2e36ce on github
  • Prev Build on BABEL_4_X_DEV (#12387385375)
  • Next Build on BABEL_4_X_DEV (#12391533117)
  • 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