mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
"WITH .. CHECK OPTION" is already contained in the "source" value of a .frm file. Don't include it a second time in TMySQLConnection.GetCreateViewCode. Fixes issue #3258.
This commit is contained in:
@ -1815,8 +1815,7 @@ begin
|
||||
if Definer <> '' then
|
||||
Result := Result + 'DEFINER='+QuoteIdent(Definer, True, '@')+' ';
|
||||
Result := Result + 'VIEW '+QuoteIdent(Database)+'.'+QuoteIdent(Name)+' AS '+AlternativeSelectCode+' ';
|
||||
if CheckOption <> '' then
|
||||
Result := Result + 'WITH '+Uppercase(CheckOption)+' CHECK OPTION';
|
||||
// WITH .. CHECK OPTION is already contained in the source
|
||||
end;
|
||||
rx.Free;
|
||||
except
|
||||
|
Reference in New Issue
Block a user