On Mon Mar 26 01:24:44 2007, antilyrical@spamcop.net wrote:
Show quoted text> \set ON_ERROR_STOP 1
> \set ON_ERROR_STOP 0
> \set ON_ERROR_STOP
>
> Those above three commands can show up in PostgreSQL .sql files. Most
> common is the first one I believe.
>
> when converting from PostgreSQL to MySQL, I get an error on that line
> that says "Invalid statement".
\set is a command for the psql command-line tool (and
pg_dump/pg_restore), it isn't SQL and there is no reason that
SQL::Translator shouldn't throw an error for that. If you are going to
feed the output of pg_dump to an SQL::Translator script, you should
probably remove all the non-SQL stuff in the file first...