"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:
Ansgar Becker
2013-06-29 04:03:07 +00:00
parent 5865716090
commit 2ff588b233

View File

@ -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