mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-14 01:02:55 +00:00
* fix: forbid to change tables in information_schema * refactor: use unified read-only check function * test: add more sqlness tests for information_schema * refactor: move is_readonly_schema to common_catalog
38 lines
605 B
SQL
38 lines
605 B
SQL
create schema abc;
|
|
|
|
use abc;
|
|
|
|
create table t (ts timestamp time index);
|
|
|
|
create schema abcde;
|
|
|
|
use abcde;
|
|
|
|
create table t (ts timestamp time index);
|
|
|
|
select table_catalog, table_schema, table_name from information_schema.tables where table_schema != 'information_schema';
|
|
|
|
use public;
|
|
|
|
drop schema abc;
|
|
|
|
drop schema abcde;
|
|
|
|
drop schema information_schema;
|
|
|
|
use information_schema;
|
|
|
|
create table t (ts timestamp time index);
|
|
|
|
drop table build_info;
|
|
|
|
alter table build_info add q string;
|
|
|
|
truncate table build_info;
|
|
|
|
insert into build_info values ("", "", "", "", "");
|
|
|
|
delete from build_info;
|
|
|
|
use public;
|