MySQL/MariaDB: the statement splitter and the lexer disagree with the server
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading issue #353, which is expected to establish the per-engine lexer seam; the issue names no files or tests. Then check how MySQL and MariaDB parse the three example statements, including whether MySQL supports nested comments, and add a failing test and live-server check for each case. Done when the engine-specific lexer matches server behavior in all three cases.
Written by the indexing model from the issue text.
Description
Need
On MySQL and MariaDB the statement splitter and the lexer read some text differently from the server. All three cases found so far refuse or fail more than they need to; none runs anything the user did not see:
- A
;inside an executable comment (SELECT 1 /*!50000 ; SELECT 2 */; SELECT 3) splits the statement there. - A nested comment (
SELECT 1 /* a /* b */ ; */) leaves a stray*/statement on MySQL (to check first whether MySQL itself reads nested comments). - In MySQL's default mode a backslash escapes a quote, but
'a\'; DROP TABLE t; -- 'is classified as a DROP.
Plan
One fix per case, each with a test that fails today and a check against a live server, in the engine-specific lexer once the per-engine seam (#353) gives it a home.
- Dominant language
- Rust
- Stars
- 166
- Forks
- 8
- Avg merge
- 4h 24m
- Merged PRs (30d)
- 291
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DokaDev/datarig
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
DokaDev/datarig#544 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
tests
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pop-os/cosmic-applets#1641 ·
Maintainers usually reply within 3 days