@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