Skip to content

autocomplete with quoted schemas does not complete #428

@immetoo2

Description

@immetoo2

Found some bugs the web console, given a setup with;

create schema "test";
create table "test"."foobar" ("id" int);

Using mem/file h2 without extra url options.

The autocomplete of the query editor has the following misbehaviours;

  • Does not autocomplete the tables in a quoted schema.

    Example:
    Input: select * from "test".
    Expected: list of tables in schema

  • After pretyping the search needle and selecting the quoted schema the pretyped
    text does not get replaced.

    Example:
    Input: select * from te
    Output: select * from teest".
    Expected: select * from "test".
    Note: Works when selecting a none-quoted schema or autocompleting without search needle.

  • Incorrect table name autocompleting from none excisting schema leads to illegal query

    Example:
    Input: SELECT * FROM test.
    Output: SELECT * FROM test."foobar"
    Expected: No autocompleting because there is no schema test.
    SQL error:
    Schema "TEST" not found; SQL statement:
    SELECT * FROM test."foobar" [90079-192] 90079/90079

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions