From: Maxim Dobriakov Date: Mon, 1 Feb 2010 22:00:11 +0000 (+0800) Subject: Replace undefined variable @file to @destfile X-Git-Url: http://git.neszt.hu/?a=commitdiff_plain;h=fcc99429011b2352798927550718c432c4bc17f4;p=mysql2postgres Replace undefined variable @file to @destfile --- diff --git a/mysql2psql b/mysql2psql index 36a32de..faef45c 100755 --- a/mysql2psql +++ b/mysql2psql @@ -675,7 +675,7 @@ reader = MysqlReader.new(@mysqlhost, @mysqluser, @mysqlpass, @mysqldb, @mysqlpor if @destfile.nil? writer = PostgresDbWriter.new(@pghost, @pguser, @pgpass, @pgdb, @pgport) else - writer = PostgresFileWriter.new(@file) + writer = PostgresFileWriter.new(@destfile) end converter = Converter.new(reader, writer, :only_tables => parse_tablenames(@tables))