Fix detection of virtual columns without "GENERATED ALWAYS" clause. See http://www.heidisql.com/forum.php?t=20248

This commit is contained in:
Ansgar Becker
2016-01-04 18:35:20 +00:00
parent d0a61d207a
commit 34f524686d

View File

@@ -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];