[eluser]smilie[/eluser]
Hm, that should not have happend :-)
A 'quick dirty' trick would be:
Code:
$this->db->where(‘id’,1);
$this->db->delete(‘test’);
$db2 = $this->load->database('default',TRUE);
$db2->where(‘id <’,100);
$db2->from(‘test’);
$db2->count_all_results();
Where 'default' is the name of the DB in your config file;
This way, you will create another DB instance which should not take
$this->db->where(‘id’,1);
in the query.
But, imho - once delete() has been executed, the mysql should 'clean' it up... I just looked in the manual, but could not find anything regarding this.
Cheers,
Smilie