Fix bug #1844735 "Corrupt CREATE TABLE in dumps"

This commit is contained in:
Ansgar Becker
2007-12-16 23:01:27 +00:00
parent 2b4c477e3e
commit bac6b5bff2

View File

@ -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;