Merging upstream version 1.14.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a842e453d1
commit
3b8f21e56b
18 changed files with 766 additions and 97 deletions
|
@ -357,6 +357,18 @@ def test_sub_select_multiple_col_name_completion():
|
|||
)
|
||||
|
||||
|
||||
def test_suggested_multiple_column_names():
|
||||
suggestions = suggest_type("SELECT id, from users", "SELECT id, ")
|
||||
assert sorted_dicts(suggestions) == sorted_dicts(
|
||||
[
|
||||
{"type": "column", "tables": [(None, "users", None)]},
|
||||
{"type": "function", "schema": []},
|
||||
{"type": "alias", "aliases": ["users"]},
|
||||
{"type": "keyword"},
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
def test_sub_select_dot_col_name_completion():
|
||||
suggestions = suggest_type("SELECT * FROM (SELECT t. FROM tabl t", "SELECT * FROM (SELECT t.")
|
||||
assert sorted_dicts(suggestions) == sorted_dicts(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue