mirror of
https://github.com/Fabio286/antares.git
synced 2025-03-07 04:47:44 +01:00
fix: empty definer when editing a view, fixes #437
This commit is contained in:
parent
01f607cd40
commit
498a9b48e2
@ -940,7 +940,7 @@ export class MySQLClient extends AntaresCore {
|
||||
|
||||
return {
|
||||
algorithm: algorithm[0]['Create View'].match(/(?<=CREATE ALGORITHM=).*?(?=\s)/gs)[0],
|
||||
definer: viewInfo[0].DEFINER,
|
||||
definer: viewInfo[0].DEFINER.split('@').map((str: string) => `\`${str}\``).join('@'),
|
||||
security: viewInfo[0].SECURITY_TYPE,
|
||||
updateOption: viewInfo[0].CHECK_OPTION === 'NONE' ? '' : viewInfo[0].CHECK_OPTION,
|
||||
sql: viewInfo[0].VIEW_DEFINITION,
|
||||
|
Loading…
x
Reference in New Issue
Block a user