oracle views fixed

This commit is contained in:
SPRINX0\prochazka 2024-09-05 13:43:40 +02:00
parent 0085505b7d
commit 77b6bddd87
2 changed files with 4 additions and 3 deletions

View File

@ -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: [],
};

View File

@ -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
`;