alibaba / alibaba/druid

Sqlserver WAITFOR DELAY 解析错误

Open
#770 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
28.2k
Forks
8.6k
PR merge metrics
No merged PRs in 30d

Description

select * from t_blog where title = 'Title 4' IF(1=2) WAITFOR DELAY '0:0:1'
以上sql解析出错。

sqlserver2008 druid:1.0.12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported SQL Server 2008 input with Druid 1.0.12, starting with the parser entry point for SQL Server statements. Trace the failure around the IF and WAITFOR DELAY syntax; done means this statement parses successfully without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.