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

macbre / sql-metadata / 22687819175
100%

Build:
DEFAULT BRANCH: master
Ran 04 Mar 2026 08:28PM UTC
Jobs 1
Files 7
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

04 Mar 2026 08:27PM UTC coverage: 100.0%. Remained the same
22687819175

push

github

web-flow
Fix infinite loop in Parser.with_names for malformed WITH statements (#605)

Resolves #556.

The parser would hang indefinitely when encountering malformed SQL with
consecutive AS keywords in WITH clauses (e.g., "WITH a AS (...) AS g").

The issue was in the with_names property loop: after processing a WITH
clause, if the next token was another AS keyword (invalid syntax), the
parser would not advance the token, causing an infinite loop.

This fix:
- Detects malformed SQL with consecutive AS keywords after WITH queries
- Raises ValueError("This query is wrong") instead of hanging
- Ensures the token always advances to prevent infinite loops
- Adds test case to verify the fix

Co-authored-by: Claude <noreply@anthropic.com>

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

898 of 898 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22687819175.1 04 Mar 2026 08:28PM UTC 7
100.0
GitHub Action Run
Source Files on build 22687819175
  • Tree
  • List 7
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 73475ea5 on github
  • Prev Build on master (#22686584750)
  • Next Build on master (#22688031239)
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