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:
Yingwen
2023-07-04 23:01:27 +09:00
committed by GitHub
parent ccee60f37d
commit f37b394f1a
5 changed files with 83 additions and 85 deletions

View File

@@ -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;