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

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

Build:
Build:
LAST BUILD BRANCH: BABEL-5577
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 05 Dec 2024 04:53PM 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 04:07PM UTC coverage: 74.723% (+0.01%) from 74.712%
12183575759

push

github

web-flow
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%)

45777 of 61262 relevant lines covered (74.72%)

166046.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12183575759.1 05 Dec 2024 04:53PM UTC 115
74.72
GitHub Action Run
Source Files on build 12183575759
  • Tree
  • List 115
  • Changed 73
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12183575759
  • 5251e4ab on github
  • Prev Build on BABEL_4_X_DEV (#12175746457)
  • Next Build on BABEL_4_X_DEV (#12183760477)
  • 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