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

babelfish-for-postgresql / babelfish_extensions / 13989101108
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 21 Mar 2025 10:28AM 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

21 Mar 2025 09:54AM UTC coverage: 75.056% (+0.02%) from 75.041%
13989101108

push

github

web-flow
Prevent dropping of critical system views, functions, and procedures (#3480)

This commit introduces restrictions to prevent the dropping of essential system views, functions, and procedures within the dbo schema for both TSQL and PSQL dialects:

    sp_addlinkedserver
    syspolicy_configuration
    syspolicy_system_health_state
    fn_syspolicy_is_automation_enabled

Generalized the restriction mechanism for handling all kinds of objects.

Note: Only superusers can drop these restricted objects and since this couldn't be added in jdbc test, adding the output here for more info:

-- psql
babelfish_db=# DROP VIEW msdb_dbo.syspolicy_system_health_state;
DROP VIEW

Task: JIRA-5145, JIRA-5146

Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>

35 of 39 new or added lines in 2 files covered. (89.74%)

228 existing lines in 3 files now uncovered.

47584 of 63398 relevant lines covered (75.06%)

187743.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
90.45
-0.02% contrib/babelfishpg_tsql/src/pl_handler.c
3
47.73
1.9% contrib/babelfishpg_tsql/src/pl_funcs-2.c

Uncovered Existing Lines

Lines Coverage ∆ File
4
94.64
0.2% contrib/babelfishpg_common/src/typecode.c
69
83.82
0.14% contrib/babelfishpg_tsql/src/pltsql_coerce.c
155
81.14
0.07% contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c
Jobs
ID Job ID Ran Files Coverage
1 13989101108.1 21 Mar 2025 10:28AM UTC 115
75.06
GitHub Action Run
Source Files on build 13989101108
  • Tree
  • List 115
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13989101108
  • 5c820f95 on github
  • Prev Build on BABEL_5_X_DEV (#13979785496)
  • Next Build on BABEL_5_X_DEV (#13999902845)
  • 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