fix(SQLite): improved view body parsing

This commit is contained in:
Fabio Di Stasio 2023-08-14 10:44:36 +02:00
parent aba67f3872
commit 832aa75ebe
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ export class SQLiteClient extends AntaresCore {
return results.rows.map(row => {
return {
sql: row.sql.match(/(?<=AS ).*?$/gs)[0],
sql: row.sql.match(/(?<=(AS|as)( |\n)).*?$/gs)[0],
name: view
};
})[0];