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

macbre / sql-metadata / 22687819175 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 04 Mar 2026 08:28PM UTC
Files 7
Run time 0s
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.1

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>

898 of 898 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 22687819175.1
  • Tree
  • List 7
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22687819175
  • 73475ea5 on github
  • Prev Job for on master (#22686584750.1)
  • Next Job for on master (#22688031239.1)
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