require 'pg'
+require 'common/plugin'
+require 'mailshears/rm_plugin'
+
class AgendavDb
include Plugin
+ include RmPlugin
def initialize()
cfg = Configuration.new()
# 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,