mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:00:16 +08:00
Fix bug #1844735 "Corrupt CREATE TABLE in dumps"
This commit is contained in:
@ -840,6 +840,9 @@ begin
|
|||||||
spos := Pos('DEFAULT CHARSET', sql);
|
spos := Pos('DEFAULT CHARSET', sql);
|
||||||
if (spos > 0) then begin
|
if (spos > 0) then begin
|
||||||
epos := Pos2(' ', sql, spos + 14);
|
epos := Pos2(' ', sql, spos + 14);
|
||||||
|
// For cases in which no whitespace is following:
|
||||||
|
if epos = 0 then
|
||||||
|
epos := Length(sql)+1;
|
||||||
Insert('*/', sql, epos);
|
Insert('*/', sql, epos);
|
||||||
Insert('/*!40100 ', sql, spos);
|
Insert('/*!40100 ', sql, spos);
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user