mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
When copying a table, use a column for the INSERT..SELECT query only if it's not a virtual one. Closes #84.
This commit is contained in:
@@ -440,7 +440,9 @@ begin
|
||||
CreateCode := CreateCode + Format(ClausePattern, [Column.SQLCode]);
|
||||
if AutoIncRemoved then
|
||||
Column.DefaultType := cdtAutoInc;
|
||||
DataCols := DataCols + FConnection.QuoteIdent(Column.Name) + ', ';
|
||||
// Use this column for the INSERT..SELECT query only if it's not a virtual one
|
||||
if Column.Virtuality.IsEmpty then
|
||||
DataCols := DataCols + FConnection.QuoteIdent(Column.Name) + ', ';
|
||||
end;
|
||||
|
||||
// Indexes code
|
||||
|
||||
Reference in New Issue
Block a user