From https://github.com/lanyrd/mysql-postgresql-converter/pull/26