sql terminator in oracle routines

This commit is contained in:
Jan Prochazka
2024-12-13 14:50:34 +01:00
parent a203480a72
commit 71c06e31f7
2 changed files with 4 additions and 4 deletions

View File

@@ -440,14 +440,14 @@ end;$$`,
const filterLocal = [ const filterLocal = [
// filter local testing // filter local testing
'MySQL', '-MySQL',
'-MariaDB', '-MariaDB',
'-PostgreSQL', '-PostgreSQL',
'-SQL Server', '-SQL Server',
'-SQLite', '-SQLite',
'-CockroachDB', '-CockroachDB',
'-ClickHouse', '-ClickHouse',
'-Oracle', 'Oracle',
]; ];
const enginesPostgre = engines.filter(x => x.label == 'PostgreSQL'); const enginesPostgre = engines.filter(x => x.label == 'PostgreSQL');

View File

@@ -171,14 +171,14 @@ class Analyser extends DatabaseAnalyser {
objectId: `procedures:${proc.pure_name}`, objectId: `procedures:${proc.pure_name}`,
pureName: proc.pure_name, pureName: proc.pure_name,
// schemaName: proc.schema_name, // schemaName: proc.schema_name,
createSql: `CREATE ${proc.source_code}`, createSql: `SET SQLTERMINATOR "/"\nCREATE ${proc.source_code}\n/\n`,
contentHash: proc.hash_code, contentHash: proc.hash_code,
})), })),
functions: routines.rows functions: routines.rows
.filter(x => x.object_type == 'FUNCTION') .filter(x => x.object_type == 'FUNCTION')
.map(func => ({ .map(func => ({
objectId: `functions:${func.pure_name}`, objectId: `functions:${func.pure_name}`,
createSql: `CREATE ${func.source_code}`, createSql: `SET SQLTERMINATOR "/"\nCREATE ${func.source_code}\n/\n`,
pureName: func.pure_name, pureName: func.pure_name,
// schemaName: func.schema_name, // schemaName: func.schema_name,
contentHash: func.hash_code, contentHash: func.hash_code,