[eluser]makoto kuwata[/eluser]
Hi all,
I have a question about error handling.
How to catch error of SQL statement?
for example:
create table items (
id integer primary key auto_increment,
name varchar(32) not null unique
);
$this->insert('items', array('name'=>'AAA')); // OK
$this->insert('items', array('name'=>'AAA')); // Uniqueness error
I want to catch this error.
Is it possible?
--
regards,
makoto kuwata