From 2ff588b2337d14ebde606177bed743fb76b1d2ff Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 29 Jun 2013 04:03:07 +0000 Subject: [PATCH] "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. --- source/dbconnection.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 88948411..3092380d 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -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