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

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

Build:
Build:
LAST BUILD BRANCH: babel-6223_4_9_stable
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 19 Nov 2024 01:10PM 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

19 Nov 2024 12:37PM UTC coverage: 74.716% (+0.003%) from 74.713%
11913202982

push

github

web-flow
Do not allow sp_ procedure calls in a SQL function (#3126)

T-SQL does not allow calling a stored procedure in a user-defined SQL function and will raise an execution-time error when such an execution is attempted. Babelfish currently enforces this for regular stored procedures, but not for system stored procedures (those whose names start with sp_). Some Babelfish releases ago, executing a system stored procedure in a function would crash the PG server, though in the latest codeline this may just raise an error like InstrStartNode called twice in a row.
The reason is simply that the check in exec_stmt_exec() does not cover the case of a call to a system stored procedure, therefore this fix adds this check to exec_stmt_exec_sp() as well.

NB. This is an execution-time check, presumably because SQL Server allows so-called extended stored procedures (named xp_something) to be called from functions, and these can also be called through a variable -- though neither variable procedure names nor extended stored procedures are currently supported in Babelfish.

Task: BABEL-1730

Signed-off-by: Rob Verschoor rcv@amazon.com

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

45726 of 61200 relevant lines covered (74.72%)

162380.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11913202982.1 19 Nov 2024 01:10PM UTC 0
74.72
GitHub Action Run
Source Files on build 11913202982
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11913202982
  • 5c3ff29f on github
  • Prev Build on BABEL_4_X_DEV (#11913062380)
  • Next Build on BABEL_4_X_DEV (#11914680412)
  • 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