mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 00:16:00 +00:00
fix lowercase for tablelist do not always convert column names to lower
This commit is contained in:
@@ -1,27 +1,9 @@
|
||||
module.exports = `
|
||||
select infoTables.table_schema as "schema_name", infoTables.table_name as "pure_name"
|
||||
from (
|
||||
select
|
||||
sys_context('userenv', 'DB_NAME') table_catalog,
|
||||
owner table_schema,
|
||||
table_name table_name,
|
||||
case
|
||||
when iot_type = 'Y' then 'IOT'
|
||||
when temporary = 'Y' then 'TEMP'
|
||||
else 'BASE TABLE'
|
||||
end table_type
|
||||
select
|
||||
owner "schema_name",
|
||||
table_name "pure_name"
|
||||
from
|
||||
all_tables
|
||||
union all
|
||||
select
|
||||
sys_context('userenv', 'DB_NAME') table_catalog,
|
||||
owner table_schema,
|
||||
view_name table_name,
|
||||
'VIEW' table_type
|
||||
from
|
||||
all_views
|
||||
) infoTables
|
||||
where infoTables.table_type not like '%VIEW%'
|
||||
and table_name =OBJECT_ID_CONDITION
|
||||
where TABLE_NAME =OBJECT_ID_CONDITION
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user