Topic: custom update query

hi,
is there a way to save a string with plus signs. ? right now im trying to run a simple update query with a string containing
plus signs. do i need to escape that somehow?

thanks

Pete

testname = "this+is+a+test"

update = "UPDATE test SET testname = '#{testname}' WHERE id 1"

ActiveRecord::Base.connection.execute(update);