should be it
This commit is contained in:
24
external/duckdb/test/sql/function/autocomplete/alter_table.test
vendored
Normal file
24
external/duckdb/test/sql/function/autocomplete/alter_table.test
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# name: test/sql/function/autocomplete/alter_table.test
|
||||
# description: Test sql_auto_complete
|
||||
# group: [autocomplete]
|
||||
|
||||
require autocomplete
|
||||
|
||||
statement ok
|
||||
CREATE TABLE my_table(first_column bigint);
|
||||
|
||||
query II
|
||||
FROM sql_auto_complete('ALTER TABLE my_table DROP COLUMN fi') LIMIT 1;
|
||||
----
|
||||
first_column 33
|
||||
|
||||
query II
|
||||
FROM sql_auto_complete('ALTER TABLE my_table ALTER COLUMN fi') LIMIT 1;
|
||||
----
|
||||
first_column 34
|
||||
|
||||
query II
|
||||
FROM sql_auto_complete('ALTER TABLE my_table RENAME COLUMN fi') LIMIT 1;
|
||||
----
|
||||
first_column 35
|
||||
|
||||
Reference in New Issue
Block a user