diff --git a/source/tabletools.pas b/source/tabletools.pas index 829009c4..35116c21 100644 --- a/source/tabletools.pas +++ b/source/tabletools.pas @@ -1227,6 +1227,8 @@ begin Struc := Struc + Quoter.QuoteIdent(DBObj.Name); Output(Struc, True, True, True, True, True); Struc := DBObj.CreateCode; + if DBObj.ViewSelectCode <> '' then + Struc := DBObj.ViewSelectCode; if ToDb then Insert(Quoter.QuoteIdent(FinalDbName)+'.', Struc, Pos('VIEW', Struc) + 5 ); end;