[OpenSIPS-Users] issues with prepared statements in mysql

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Mar 3 19:16:51 CET 2010


Hi Alex,

and the acc record is actually added (even with the trigger error) ? or 
the acc insert fails completely ?

Regards,
Bogdan

Alex G wrote:
> I have a scenario where I execute a trigger in mysql when info is 
> added to the acc table. In some circumstances, my trigger results in a 
> duplicate key when it tries to add info to another table. The prepared 
> statement functionality reads this as an error, and fails to do the 
> insert into the acc table as a result of this.
>
> Is there any way to get around this?
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list