mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
oracle views fixed
This commit is contained in:
parent
0085505b7d
commit
77b6bddd87
@ -322,7 +322,7 @@ export class DatabaseAnalyser {
|
||||
this.logger.debug({ rows: res.rows.length, template }, `Loaded analyser query`);
|
||||
return res;
|
||||
} catch (err) {
|
||||
logger.error({ err }, 'Error running analyser query');
|
||||
logger.error({ err, message: err.message, template, sql }, 'Error running analyser query');
|
||||
return {
|
||||
rows: [],
|
||||
};
|
||||
|
@ -4,9 +4,10 @@ select avv.*,
|
||||
from (select
|
||||
view_name as "pure_name",
|
||||
-- owner as "schema_name",
|
||||
SUBSTR(text_vc, 1, 3900) AS "create_sql"
|
||||
-- SUBSTR(text_vc, 1, 3900) AS "create_sql"
|
||||
text as "create_sql"
|
||||
from all_views av
|
||||
where owner = '$owner' and text_vc is not null
|
||||
where owner = '$owner' and text is not null
|
||||
) avv
|
||||
where 'views:' || "pure_name" =OBJECT_ID_CONDITION
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user