Skip to content
Permalink
Browse files

Issue #640: prevent crashes when future versions of the server return…

… key clauses unsupported by HeidiSQL
  • Loading branch information...
ansgarbecker committed May 6, 2019
1 parent 3a4578e commit 8ac1c745b149e296d85a976d1f88a6f98cba976a
Showing with 3 additions and 0 deletions.
  1. +3 −0 source/dbconnection.pas
@@ -5278,6 +5278,9 @@ procedure TDBConnection.ParseTableStructure(CreateTable: String; Columns: TTable
if rxCol.Exec(Key.Columns[i]) then begin
Key.Columns[i] := rxCol.Match[1];
Key.SubParts.Add(rxCol.Match[3]);
end else begin
// Regex did not match - most likely some unsupported clause, as in #640
Key.SubParts.Add('');
end;
Key.Columns[i] := StringReplace(Key.Columns[i], QuoteReplacement, FQuoteChar, [rfReplaceAll]);
end;

0 comments on commit 8ac1c74

Please sign in to comment.
You can’t perform that action at this time.