From: Michael Orlitzky Date: Wed, 4 Nov 2015 23:13:11 +0000 (-0500) Subject: Fix broken nesting in lib/mv/plugins/postfixadmin.rb. X-Git-Tag: 0.0.1~24 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=a66e4a7e39518629981fa134456dc2ae6c461faf;p=mailshears.git Fix broken nesting in lib/mv/plugins/postfixadmin.rb. --- diff --git a/lib/mv/plugins/postfixadmin.rb b/lib/mv/plugins/postfixadmin.rb index 659b9b7..9317b4b 100644 --- a/lib/mv/plugins/postfixadmin.rb +++ b/lib/mv/plugins/postfixadmin.rb @@ -43,15 +43,16 @@ class PostfixadminMv @db_name, @db_user, @db_pass) sql_queries.each do |sql_query| - varchar = 1043 # from pg_type.h - params = [{:value => dst.to_s(), :type => varchar}, - {:value => dst.domainpart(), :type => varchar}, - {:value => dst.localpart(), :type => varchar}, - {:value => src.to_s(), :type => varchar}] + varchar = 1043 # from pg_type.h + params = [{:value => dst.to_s(), :type => varchar}, + {:value => dst.domainpart(), :type => varchar}, + {:value => dst.localpart(), :type => varchar}, + {:value => src.to_s(), :type => varchar}] + + connection.query(sql_query, params) + end - connection.query(sql_query, params) connection.close() end - end