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

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

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 22 Oct 2024 05:03PM 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

22 Oct 2024 04:28PM UTC coverage: 74.534% (-0.002%) from 74.536%
11464483590

push

github

web-flow
cleanup pltsql state properly in exec_stmt_exec_batch in case of errors (#3036)

Some system states like pltsql guc nest level, pltsql scope identity should always be cleaned up at the end of execution even in case of errors since these were defined to be outside of postgres's transaction cleanup control.
So a pltsql_new_guc_nest_level() should always have a pltsql_revert_guc in all cases and vice versa.

This was not happening inside exec_stmt_exec_batch where we could error out even before starting a new pltsql guc nest level and then in catch block we would try to revert a non existent nest level.

As a fix we move out the call to pltsql_new_guc_nest_level() before try block ensuring we have a nest level to revert in catch.

Task: BABEL-5344
Signed-off-by: Tanzeel Khan <tzlkhan@amazon.com>

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

1 existing line in 1 file now uncovered.

45232 of 60686 relevant lines covered (74.53%)

162839.0 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.8
-0.21% contrib/babelfishpg_tds/src/backend/tds/tdsutils.c
Jobs
ID Job ID Ran Files Coverage
1 11464483590.1 22 Oct 2024 05:03PM UTC 115
74.53
GitHub Action Run
Source Files on build 11464483590
  • Tree
  • List 115
  • Changed 66
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11464483590
  • 4893334b on github
  • Prev Build on BABEL_4_X_DEV (#11461809918)
  • Next Build on BABEL_4_X_DEV (#11468098887)
  • 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