Issue #2558179 by jhedstrom, dawehner, catch: Database dump script produces a dump with syntax errors in it