# File lib/dbd/odbc/database.rb, line 91 91: def []=(attr, value) 92: case attr 93: when 'AutoCommit' 94: @handle.autocommit(value) 95: when 'odbc_ignorecase' 96: @handle.ignorecase(value) 97: else 98: if attr =~ /^odbc_/ or attr != /_/ 99: raise DBI::NotSupportedError, "Option '#{attr}' not supported" 100: else # option for some other driver - quitly ignore 101: return 102: end 103: end 104: @attr[attr] = value 105: rescue DBI::DBD::ODBC::ODBCErr => err 106: raise DBI::DatabaseError.new(err.message) 107: end