Files
greptimedb/tests/cases/standalone/common/create/create_database.result
JohnsonLee a8477e4142 fix: table resolving logic related to pg_catalog (#4580)
* fix: table resolving logic related to pg_catalog

refer to
https://github.com/GreptimeTeam/greptimedb/issues/3560#issuecomment-2287794348
and #4543

* refactor: remove CatalogProtocol type

* fix: sqlness

* fix: forbid create database pg_catalog with mysql client

* refactor: use QueryContext as arguments rather than Channel

* refactor: pass None as default behaviour in information_schema

* test: fix test
2024-09-09 00:47:59 +00:00

28 lines
536 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create database '㊙database';
Error: 1002(Unexpected), Unexpected, violated: Invalid database name: ㊙database
create database illegal-database;
Error: 1001(Unsupported), SQL statement is not supported, keyword: -
create database 'illegal-database';
Affected Rows: 1
show databases;
+--------------------+
| Database |
+--------------------+
| greptime_private |
| illegal-database |
| information_schema |
| public |
+--------------------+
drop database 'illegal-database';
Affected Rows: 0