mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 18:12:05 +08:00
Bugfix: Zeos threw away conditional SQL. Fixes issue #1828300.
This commit is contained in:
@ -338,14 +338,19 @@ begin
|
|||||||
ReadNum := Stream.Read(ReadChar, 1);
|
ReadNum := Stream.Read(ReadChar, 1);
|
||||||
if (ReadNum > 0) and (ReadChar = '*') then
|
if (ReadNum > 0) and (ReadChar = '*') then
|
||||||
begin
|
begin
|
||||||
Result.TokenType := ttComment;
|
ReadNum := Stream.Read(ReadChar, 1);
|
||||||
Result.Value := '/*' + GetMultiLineComment(Stream);
|
|
||||||
end
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
if ReadNum > 0 then
|
if ReadNum > 0 then
|
||||||
Stream.Seek(-1, soFromCurrent);
|
Stream.Seek(-1, soFromCurrent);
|
||||||
|
if (ReadNum > 0) and (ReadChar <> '!') then
|
||||||
|
begin
|
||||||
|
ReadNum := 0;
|
||||||
|
Result.TokenType := ttComment;
|
||||||
|
Result.Value := '/*' + GetMultiLineComment(Stream);
|
||||||
|
end else
|
||||||
|
ReadNum := 1;
|
||||||
end;
|
end;
|
||||||
|
if ReadNum > 0 then
|
||||||
|
Stream.Seek(-1, soFromCurrent);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if (Result.TokenType = ttUnknown) and (Tokenizer.SymbolState <> nil) then
|
if (Result.TokenType = ttUnknown) and (Tokenizer.SymbolState <> nil) then
|
||||||
|
Reference in New Issue
Block a user