local_part=$3
WHERE username=$4;']
- sql_queries = ['UPDATE alias SET address=$1,
+ sql_queries << 'UPDATE alias SET address=$1,
domain=$2,
- goto=REPLACE(goto, $4, $1);
- WHERE address=$4;']
+ goto=REPLACE(goto, $4, $1)
+ WHERE address=$4;'
- sql_queries = ['UPDATE alias SET goto=REPLACE(GOTO, $4, $1);']
+ sql_queries << 'UPDATE alias SET goto=REPLACE(GOTO, $4, $1);'
begin
connection = PGconn.connect(@db_host,
# Pretend like we're database-agnostic in case we ever are.
raise DatabaseError.new(e)
end
+
end