From 34f524686d92ddbfa3c95dff75e57aa666bcf02e Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 4 Jan 2016 18:35:20 +0000 Subject: [PATCH] Fix detection of virtual columns without "GENERATED ALWAYS" clause. See http://www.heidisql.com/forum.php?t=20248 --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index bdae2f52..b15860b5 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -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];