mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix detection of virtual columns without "GENERATED ALWAYS" clause. See http://www.heidisql.com/forum.php?t=20248
This commit is contained in:
@@ -4839,7 +4839,7 @@ begin
|
||||
end;
|
||||
|
||||
// Virtual columns
|
||||
rxCol.Expression := '^(GENERATED ALWAYS)? AS \((.+)\)\s+(VIRTUAL|PERSISTENT|STORED)\s*';
|
||||
rxCol.Expression := '^(GENERATED ALWAYS)?\s*AS\s+\((.+)\)\s+(VIRTUAL|PERSISTENT|STORED)\s*';
|
||||
if rxCol.Exec(ColSpec) then begin
|
||||
Col.Expression := rxCol.Match[2];
|
||||
Col.Virtuality := rxCol.Match[3];
|
||||
|
||||
Reference in New Issue
Block a user