mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-19 21:20:40 +01:00
fix(SQLite): improved view body parsing
This commit is contained in:
parent
aba67f3872
commit
832aa75ebe
@ -425,7 +425,7 @@ export class SQLiteClient extends AntaresCore {
|
|||||||
|
|
||||||
return results.rows.map(row => {
|
return results.rows.map(row => {
|
||||||
return {
|
return {
|
||||||
sql: row.sql.match(/(?<=AS ).*?$/gs)[0],
|
sql: row.sql.match(/(?<=(AS|as)( |\n)).*?$/gs)[0],
|
||||||
name: view
|
name: view
|
||||||
};
|
};
|
||||||
})[0];
|
})[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user