From 7e486aeb451e3072fdadb94455a2ecca6ed03173 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 6 Jul 2014 15:06:24 +0000 Subject: [PATCH] Avoid inclusion of keys, foreign keys, partition clauses and whatever as additional columns in ParseTableStructure. See http://www.heidisql.com/forum.php?t=15960 --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 9167cf45..e2d669d5 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -4180,7 +4180,7 @@ begin rx := TRegExpr.Create; rx.ModifierS := False; rx.ModifierM := True; - rx.Expression := '^\s+(.+),?$'; + rx.Expression := '^\s+(['+Quotes+'].+),?$'; rxCol := TRegExpr.Create; rxCol.ModifierI := True; if rx.Exec(CreateTable) then while true do begin