mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 07:56:01 +00:00
fix: add schema to tables
This commit is contained in:
@@ -38,7 +38,9 @@ class Analyser extends DatabaseAnalyser {
|
||||
return {
|
||||
tables: tables.map(table => ({
|
||||
...table,
|
||||
columns: columns.filter(column => column.tableName === table.pureName),
|
||||
columns: columns.filter(
|
||||
column => column.tableName === table.pureName && column.schemaName === table.schemaName
|
||||
),
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ module.exports = `
|
||||
SELECT
|
||||
TRIM(RDB$RELATION_NAME) AS pureName,
|
||||
RDB$DESCRIPTION AS objectComment,
|
||||
RDB$FORMAT AS objectTypeField
|
||||
RDB$FORMAT AS objectTypeField,
|
||||
RDB$OWNER_NAME AS schemaName
|
||||
FROM RDB$RELATIONS
|
||||
WHERE RDB$SYSTEM_FLAG = 0 -- only user-defined tables
|
||||
ORDER BY pureName;
|
||||
|
||||
Reference in New Issue
Block a user