mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Add virtual column syntax for MySQL, which seems to differ slightly from the MariaDB implementation. See http://www.heidisql.com/forum.php?t=19405#p19901
This commit is contained in:
@ -4834,10 +4834,10 @@ begin
|
||||
end;
|
||||
|
||||
// Virtual columns
|
||||
rxCol.Expression := '^AS \((.+)\)\s+(VIRTUAL|PERSISTENT)\s*';
|
||||
rxCol.Expression := '^(GENERATED ALWAYS)? AS \((.+)\)\s+(VIRTUAL|PERSISTENT|STORED)\s*';
|
||||
if rxCol.Exec(ColSpec) then begin
|
||||
Col.Expression := rxCol.Match[1];
|
||||
Col.Virtuality := rxCol.Match[2];
|
||||
Col.Expression := rxCol.Match[2];
|
||||
Col.Virtuality := rxCol.Match[3];
|
||||
Delete(ColSpec, 1, rxCol.MatchLen[0]);
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user