I have this function and it work\'s correctly:
function update_currencies_rates($currency_rate) { $this->db->set(\'main_rate\', \'CASE