Dolt shell has issues parsing multiple statements in the same line
- Dominant language
- Go
- Stars
- 24.4k
- Forks
- 873
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 120
Description
dolt
```
tmp/main*> select null; select -- comment
-> null;
syntax error at position 20 near 'select'
tmp/main*> select null; select null;
syntax error at position 20 near 'select'
```
MySQL
```
mysql> select null; select -- comment
+------+
| NULL |
+------+
| NULL |
+------+
1 row in set (0.00 sec)
-> null;
+------+
| NULL |
+------+
| NULL |
+------+
1 row in set (0.00 sec)
mysql> select null; select null;
+------+
| NULL |
+------+
| NULL |
+------+
1 row in set (0.00 sec)
+------+
| NULL |
+------+
| NULL |
+------+
1 row in set (0.00 sec)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the two examples in the Dolt shell, including the semicolon-separated statements and the comment continuation. Trace the shell's statement parsing and compare its behavior with the MySQL examples. Done means both forms execute as separate statements without a syntax error and preserve the expected results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, mysql, sql
- Domain
- cli, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100