mirror of
				https://github.com/Fabio286/antares.git
				synced 2025-06-05 21:59:22 +02:00 
			
		
		
		
	fix: empty definer when editing a view, fixes #437
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user