lib,test: replace connection query() method with sync_exec{,_params}.
[mailshears.git] / lib / mv / plugins / roundcube.rb
index 5cd20c77064532988bff689bcf52f43c49b67692..e2126f75f244bd5288647ec41ff7610917b90b42 100644 (file)
@@ -34,7 +34,7 @@ class RoundcubeMv
 
     connection = PG::Connection.new(@db_hash)
     begin
-      connection.query(sql_query, [dst.to_s(), src.to_s()])
+      connection.sync_exec_params(sql_query, [dst.to_s(), src.to_s()])
     ensure
       # Make sure the connection gets closed even if the query explodes.
       connection.close()