]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mv/plugins/postfixadmin.rb
lib,test: replace connection query() method with sync_exec{,_params}.
[mailshears.git] / lib / mv / plugins / postfixadmin.rb
index f8f86c6ba45236b570e16f9b5c15fa2647aa77b1..1623118109a9033fd9e01bd75ee5ba737dfcfa8f 100644 (file)
@@ -59,7 +59,7 @@ class PostfixadminMv
                   {:value => dst.domainpart(), :type => varchar},
                   {:value => dst.localpart(), :type => varchar},
                   {:value => src.to_s(), :type => varchar}]
-        connection.query(sql_query, params)
+        connection.sync_exec_params(sql_query, params)
       end
     ensure
       # Make sure the connection gets closed even if a query explodes.