# File lib/rq-2.3.1/jobqueue.rb, line 795
      def []= key, value
#--{{{
        sql = "select count(*) from attributes where key='#{ key }';"
        tuples = @qdb.execute sql
        tuple = tuples.first
        count = Integer tuple['count(*)']
        case count
          when 0
            sql = "insert into attributes values('#{ key }','#{ value }');"
            @qdb.execute sql
          when 1
            sql = "update attributes set key='#{ key }', value='#{ value }' where key='#{ key }';"
            @qdb.execute sql
          else
            raise "key <#{ key }> has become corrupt!"
        end
#--}}}
      end