# File lib/dbd/sqlite/database.rb, line 94 94: def []=(key, value) 95: 96: old_value = @attr_hash[key] 97: 98: @attr_hash[key] = value 99: 100: # special handling of settings 101: case key 102: when "AutoCommit" 103: # if the value being set is true and the previous value is false, 104: # commit the current transaction (if any) 105: # FIXME I still think this is a horrible way of handling this. 106: if value and !old_value 107: begin 108: @dbh.commit 109: rescue Exception => e 110: end 111: end 112: end 113: 114: return @attr_hash[key] 115: end