mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Prevent exporting dummy VIEWs from having multiple DEFAULT CURRENT_TIMESTAMP clauses. Fixes issue #2748.
This commit is contained in:
@ -1244,8 +1244,12 @@ begin
|
||||
if ToDb then
|
||||
Struc := Struc + Quoter.QuoteIdent(FinalDbName) + '.';
|
||||
Struc := Struc + Quoter.QuoteIdent(DBObj.Name)+' (';
|
||||
for Column in ColumnList do
|
||||
for Column in ColumnList do begin
|
||||
// Prevent DEFAULT value from coming in, to fix errors due to multiple CURRENT_TIMESTAMP values
|
||||
// See issue #2748
|
||||
Column.DefaultType := cdtNothing;
|
||||
Struc := Struc + CRLF + #9 + Column.SQLCode + ',';
|
||||
end;
|
||||
Delete(Struc, Length(Struc), 1);
|
||||
Struc := Struc + CRLF + ') ENGINE=MyISAM';
|
||||
ColumnList.Free;
|
||||
|
Reference in New Issue
Block a user