Allow "DELIMITER xyz" not followed by some whitespace. Fixes issue #2655.

This commit is contained in:
Ansgar Becker
2011-12-26 23:15:44 +00:00
parent 604c9e0dc3
commit 5c32fe044b

View File

@ -313,7 +313,8 @@ begin
DelimLen := Length(Delim); DelimLen := Length(Delim);
Result := TSQLBatch.Create; Result := TSQLBatch.Create;
rx := TRegExpr.Create; rx := TRegExpr.Create;
rx.Expression := '^\s*DELIMITER\s+(\S+)\s'; rx.Expression := '^\s*DELIMITER\s+(\S+)';
rx.ModifierG := True;
rx.ModifierI := True; rx.ModifierI := True;
rx.ModifierM := False; rx.ModifierM := False;
while i < AllLen do begin while i < AllLen do begin