]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/plugins/davical.rb
lib,test: replace connection query() method with sync_exec{,_params}.
[mailshears.git] / lib / rm / plugins / davical.rb
index 1029994b9edc77a6db010eeb73fd8ad776a1b3ed..1978e8025b20a7990c3e8bb73f954b759f0a4590 100644 (file)
@@ -27,7 +27,7 @@ class DavicalRm
 
     connection = PG::Connection.new(@db_hash)
     begin
 
     connection = PG::Connection.new(@db_hash)
     begin
-      connection.query(sql_query, [user.to_s()])
+      connection.sync_exec_params(sql_query, [user.to_s()])
     ensure
       # Make sure the connection gets closed even if the query explodes.
       connection.close()
     ensure
       # Make sure the connection gets closed even if the query explodes.
       connection.close()