Skip to content

[REPL] Bug related to hitting enter from middle of line containing semi-colon #10

@alancai98

Description

@alancai98

Copied from this PR comment: #9 (comment).

There's a bug in the REPL where hitting enter from the middle of the query containing a semi-colon will repeat the query. For example, if a user typed the following query and moved the cursor to the left (this could be common when adjusting the query), the query would be repeated in the output.

PartiQL> SELECT COUNT(1) FROM <<{'a': 1}, {'a': 2}>>;
==='
<<
  {
    _1: 2
  }
>>
PartiQL> SELECT COUNT(1) FROM <<{'a': 1}, {'a': 2}>>;

---
OK!
PartiQL>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrepl

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions