René's URL Explorer Experiment


Title: --%throws annotation named package constant/variable not recognized · Issue #1223 · utPLSQL/utPLSQL · GitHub

Open Graph Title: --%throws annotation named package constant/variable not recognized · Issue #1223 · utPLSQL/utPLSQL

X Title: --%throws annotation named package constant/variable not recognized · Issue #1223 · utPLSQL/utPLSQL

Description: When a test is executed, the named constant is being searched in scope of current user (user executing the tests. This is not how it is expected to work. Example of the problem create or replace package user1.error_codes as some_error co...

Open Graph Description: When a test is executed, the named constant is being searched in scope of current user (user executing the tests. This is not how it is expected to work. Example of the problem create or replace pa...

X Description: When a test is executed, the named constant is being searched in scope of current user (user executing the tests. This is not how it is expected to work. Example of the problem create or replace pa...

Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/1223

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"--%throws annotation named package constant/variable not recognized","articleBody":"When a test is executed, the named constant is being searched in scope of current user (user executing the tests.\r\nThis is not how it is expected to work.\r\n\r\nExample of the problem\r\n```sql\r\ncreate or replace package user1.error_codes as\r\n  some_error constant integer := -20001;\r\nend;\r\n/\r\n\r\ncreate or replace package user1.main_package as\r\n  function the_proc (a number , b number ) return number;\r\nend;\r\n/\r\n\r\ncreate or replace package body user1.main_package as\r\n  function the_proc(a number , b number ) return number is\r\n  begin\r\n     if b = 0 then\r\n        raise_application_error(error_codes.some_error, 'Cannot use \"0\"');\r\n     end if;\r\n     return a/b;\r\n  end;\r\nend;\r\n/\r\n\r\ncreate or replace package user1.ut_the_code as\r\n  --%suite\r\n\r\n  --%test\r\n  --%throws(error_codes.some_error)\r\n  procedure the_test;\r\n\r\nend;\r\n/\r\n\r\ncreate or replace package body user1.ut_the_code as\r\n  procedure the_test is\r\n    y number;\r\n  begin\r\n    y := main_package.the_proc (1,0);\r\n  end;\r\nend;\r\n/\r\n\r\n```\r\n\r\nThe above test will succeed when called from schema user1.\r\n```\r\nut_the_code\r\n  the_test [.019 sec]\r\n\r\nFinished in .027852 seconds\r\n1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)\r\n```\r\n\r\nIf called from user2, \r\n```\r\nut_the_code\r\n  the_test [.007 sec] (FAILED - 1)\r\n\r\nFailures:\r\n\r\n  1) the_test\r\n      ORA-20001: Cannot use \"0\"\r\n      ORA-06512: at \"USER1.MAIN_PACKAGE\", line 5\r\n      ORA-06512: at \"USER1.UT_THE_CODE\", line 5\r\n      ORA-06512: at line 6\r\n\r\nWarnings:\r\n\r\n  1) ut_the_code.the_test\r\n      Invalid parameter value \"error_codes.some_error\" for \"--%throws\" annotation. Parameter ignored.\r\n      at package \"USER1.UT_THE_CODE.THE_TEST\", line 4\r\n\r\nFinished in .010336 seconds\r\n1 tests, 0 failed, 1 errored, 0 disabled, 1 warning(s)\r\n```\r\n\r\n\r\nThis is because the value of `--%throws` annotation is evaluated at runtime within the scope of the user running the code.\r\n\r\nA change is needed so that the value is evaluated in scope of the executed UT package schema.\r\n\r\nIdeally, we should also allow for below syntax to be valid:\r\n```sql\r\ncreate or replace package user1.ut_the_code as\r\n  --%suite\r\n\r\n  some_error constant integer := -20003;\r\n  \r\n  --%test\r\n  --%throws(some_error)\r\n  procedure the_test;\r\n\r\nend;\r\n/\r\n```","author":{"url":"https://github.com/jgebal","@type":"Person","name":"jgebal"},"datePublished":"2022-08-02T19:18:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1223/utPLSQL/issues/1223"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5f287a54-2ea8-d303-3119-abcd913b6610
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id830A:29BE58:5514A:742E2:6A63C7A3
html-safe-nonceaff13079a809ccd5024584af82f632da42491104a24bd1b3e5e982dde99a098a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzBBOjI5QkU1ODo1NTE0QTo3NDJFMjo2QTYzQzdBMyIsInZpc2l0b3JfaWQiOiI1ODc5NDg3NDI4ODU2ODkxMjk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb37ce1a4e5bcbe88be2b8c21c92dff82f096f6cc11e9f3f915ce698d533966d8
hovercard-subject-tagissue:1326296296
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/1223/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1ad088d5e903231571dc6497bc8e955f3e3ef3ce4ee68be47824c3a7014f6460/utPLSQL/utPLSQL/issues/1223
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1ad088d5e903231571dc6497bc8e955f3e3ef3ce4ee68be47824c3a7014f6460/utPLSQL/utPLSQL/issues/1223
og:image:altWhen a test is executed, the named constant is being searched in scope of current user (user executing the tests. This is not how it is expected to work. Example of the problem create or replace pa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejgebal
hostnamegithub.com
expected-hostnamegithub.com
None07534cdf5ad78a0d310a87611c7de72b4b771cce36b6f488741651bbdaa0f729
turbo-cache-controlno-preview
go-importgithub.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git
octolytics-dimension-user_id15661281
octolytics-dimension-user_loginutPLSQL
octolytics-dimension-repository_id50728220
octolytics-dimension-repository_nwoutPLSQL/utPLSQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id50728220
octolytics-dimension-repository_network_root_nwoutPLSQL/utPLSQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecd48fefa7faf69c230bc5cbc68ed433306090e59
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/utPLSQL/utPLSQL/issues/1223#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F1223
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F1223
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=utPLSQL%2FutPLSQL
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/1223
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/1223
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/1223
Please reload this pagehttps://github.com/utPLSQL/utPLSQL/issues/1223
utPLSQL https://github.com/utPLSQL
utPLSQLhttps://github.com/utPLSQL/utPLSQL
Notifications https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Fork 188 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Star 619 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Code https://github.com/utPLSQL/utPLSQL
Issues 12 https://github.com/utPLSQL/utPLSQL/issues
Pull requests 0 https://github.com/utPLSQL/utPLSQL/pulls
Discussions https://github.com/utPLSQL/utPLSQL/discussions
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects https://github.com/utPLSQL/utPLSQL/projects
Security and quality 0 https://github.com/utPLSQL/utPLSQL/security
Insights https://github.com/utPLSQL/utPLSQL/pulse
Code https://github.com/utPLSQL/utPLSQL
Issues https://github.com/utPLSQL/utPLSQL/issues
Pull requests https://github.com/utPLSQL/utPLSQL/pulls
Discussions https://github.com/utPLSQL/utPLSQL/discussions
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects https://github.com/utPLSQL/utPLSQL/projects
Security and quality https://github.com/utPLSQL/utPLSQL/security
Insights https://github.com/utPLSQL/utPLSQL/pulse
#1365https://github.com/utPLSQL/utPLSQL/pull/1365
--%throws annotation named package constant/variable not recognizedhttps://github.com/utPLSQL/utPLSQL/issues/1223#top
#1365https://github.com/utPLSQL/utPLSQL/pull/1365
https://github.com/jgebal
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/jgebal
jgebalhttps://github.com/jgebal
on Aug 2, 2022https://github.com/utPLSQL/utPLSQL/issues/1223#issue-1326296296
jgebalhttps://github.com/jgebal
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.