crate / crate/crash

SQL statement with trailing comment stalls in interactive session

Open
#496 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
49
Forks
16
PR merge metrics
No merged PRs in 30d

Description

## Problem

When running this command in an interactive session, it stalls, and will probably not get to submitted to the database at all. I think the shell thinks the context is not finished yet.
```
$ crash
CONNECT OK
cr> select 42; -- foo
```

On the other hand, when submitting the command non-interactively, it works well.
```sql
$ crash -c 'select 42; -- foo'
CONNECT OK
+----+
| 42 |
+----+
| 42 |
+----+
SELECT 1 row in set (0.001 sec)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.