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

amazon-aurora / babelfish_extensions / 12185603116
75%
main: 77%

Build:
Build:
LAST BUILD BRANCH: BABEL-6433
DEFAULT BRANCH: main
Ran 05 Dec 2024 07:01PM 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

05 Dec 2024 06:11PM UTC coverage: 74.815%. First build
12185603116

push

github

shardgupta
Disallow declaring reserved @@variable names (#3162)

Now that variables named @@myvar are supported (see PR #3073), we should also address the issue of being able to declare a user-defined variable with the same name as a predefined global @@ variable, for example @@SPID.
Babelfish has always allowed such declarations even though referencing the declared variable would actually reference the predefined global @@variable, thus producing a wrong result. For example:

1> declare @@spid int = 123
2> select @@spid
3> go
spid
-----------
      20902     <===== WRONG!

This fix does not allow predefined @@ global variables to be used as user-defined variables or parameters, and will raise a syntax error as expected in T-SQL.
A special case is the @@PGERROR variable which was introduced by Babelfish: when declaring a variable with this name, the error message will additionally point out that @@PGERROR is a reserved name in Babelfish.

Issues Resolved
BABEL-5388: Disallow declaring reserved @@variable names

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

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

46466 of 62108 relevant lines covered (74.81%)

157756.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12185603116.1 05 Dec 2024 07:01PM UTC 0
74.81
GitHub Action Run
Source Files on build 12185603116
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12185603116
  • 977bf23a on github
  • 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