mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 13:22:57 +00:00
fix: check table existence in create table procedure (#1880)
* fix: check table existence in table procedures * fix: use correct error variant * chore: address view comments * chore: address comments * test: change error code
This commit is contained in:
@@ -63,11 +63,11 @@ SELECT * FROM new_table;
|
||||
|
||||
ALTER TABLE new_table RENAME new_table;
|
||||
|
||||
Error: 1004(InvalidArguments), Table already exists: greptime.public.new_table
|
||||
Error: 4000(TableAlreadyExists), Table already exists: greptime.public.new_table
|
||||
|
||||
ALTER TABLE new_table RENAME t;
|
||||
|
||||
Error: 1004(InvalidArguments), Table already exists: greptime.public.t
|
||||
Error: 4000(TableAlreadyExists), Table already exists: greptime.public.t
|
||||
|
||||
DROP TABLE t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user