From: Michael Orlitzky Date: Tue, 19 Mar 2013 16:46:43 +0000 (-0400) Subject: Don't cast the username to an int in the AgenDAV plugin. X-Git-Tag: 0.0.1~93 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=150ee5398c17acca8ef03b3cc48b3aa7bc1b0035;p=mailshears.git Don't cast the username to an int in the AgenDAV plugin. --- diff --git a/lib/mailshears/plugins/agendav.rb b/lib/mailshears/plugins/agendav.rb index 3dec926..9746f1c 100644 --- a/lib/mailshears/plugins/agendav.rb +++ b/lib/mailshears/plugins/agendav.rb @@ -37,8 +37,8 @@ class AgendavDb # Delete the given username and any records in other tables # belonging to it. - sql_queries = ['DELETE FROM prefs WHERE username = $1::int;'] - sql_queries << 'DELETE FROM shared WHERE user_from = $1::int;' + sql_queries = ['DELETE FROM prefs WHERE username = $1;'] + sql_queries << 'DELETE FROM shared WHERE user_from = $1;' begin connection = PGconn.connect(@db_host,