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

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

Build:
Build:
LAST BUILD BRANCH: datetime2fromparts_bugfix
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 21 Mar 2024 12:46PM UTC
Jobs 1
Files 114
Run time 3min
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 2024 11:55AM UTC coverage: 72.533% (+0.3%) from 72.241%
8374483984

push

github

web-flow
Support grant/revoke on schema feature (#2415) (#2439)

* Support grant/revoke on schema feature (#2415)

Supported GRANT/REVOKE .. ON SCHEMA .. in Babelfish
Supported syntax GRANT ON SCHEMA::<schema_name> TO <user_name>
Supported syntax REVOKE ON SCHEMA::<schema_name> TO/FROM <user_name>

We have introduced a catalog sys.babelfish_schema_permission to hold the information about objects and its permissions.

GRANT on schema/objects add/update a row in the catalog table if does not exist already.
REVOKE on schema/objects removes/update the corresponding row in the catalog table if it exists already.
Drop statement for OBJECT/SCHEMA removes all the relevant object entries from the catalog.

sp_rename updates the object name in sys.babelfish_schema_permission catalog so that the permission is tracked correctly in the catalogs

Added metadata check for schema permissions catalog

GRANT/REVOKE ... ON ... SCHEMA ... WITH GRANT OPTION/CASCADE does not work as expected -> Throw unsupported error
CREATE SCHEMA ... GRANT ... ON ... SCHEMA throws syntax error -> Throw unsupported error
REVOKE GRANT OPTION FOR ... ON SCHEMA should be unsupported in Babelfish

Specific to Upgrade: The catalogs will not track the permissions granted on the OBJECTs on the earlier versions.

Issues Resolved
Task: BABEL-4344, BABEL-4775, BABEL-4485, BABEL-4739, BABEL-4738, BABEL-4758

Signed-off-by: Shalini Lohia lshalini@amazon.com

723 of 760 new or added lines in 10 files covered. (95.13%)

2 existing lines in 2 files now uncovered.

41085 of 56643 relevant lines covered (72.53%)

58647.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
78.8
0.57% contrib/babelfishpg_tsql/src/pl_exec-2.c
2
79.83
-0.04% contrib/babelfishpg_tsql/src/hooks.c
3
91.65
0.33% contrib/babelfishpg_tsql/src/pl_handler.c
8
91.52
0.08% contrib/babelfishpg_tsql/src/pltsql_utils.c
9
89.05
0.09% contrib/babelfishpg_tsql/src/tsqlIface.cpp
14
85.0
3.23% contrib/babelfishpg_tsql/src/catalog.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.0
3.23% contrib/babelfishpg_tsql/src/catalog.c
1
91.52
0.08% contrib/babelfishpg_tsql/src/pltsql_utils.c
Jobs
ID Job ID Ran Files Coverage
1 8374483984.1 21 Mar 2024 12:46PM UTC 114
72.53
GitHub Action Run
Source Files on build 8374483984
  • Tree
  • List 114
  • Changed 73
  • Source Changed 12
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8374483984
  • fa28681d on github
  • Prev Build on BABEL_4_X_DEV (#8245709764)
  • Next Build on BABEL_4_X_DEV (#8386067598)
  • 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