Related: #6600 The following code does not work. ```php $userData = [ 'email' => 'upsertone@test.com', 'name' => 'Upsert One', 'country' => 'US', ]; $builder = $this->db->table('user'); $builder->testMode()->upsert($userData); $sql = $builder->getCompiledUpsert(); ``` ``` CodeIgniter\Database\Exceptions\DatabaseException : setData() has no data. ```
Activity
kenjis commentedon Oct 19, 2022
Fixed by #6697