mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +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);
|
||||
if (spos > 0) then begin
|
||||
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('/*!40100 ', sql, spos);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user