Summary:ASTERISK-07633: [patch] MySQL error report when queries fail
Reporter:Andrea Spadaccini (lupino3)Labels:
Date Opened:2006-08-30 09:03:27Date Closed:2006-11-28 10:42:15.000-0600
Versions:Frequency of
Environment:Attachments:( 0) mysql_error_against_svn.patch
this little patch prints in the asterisk log any error that prevents a MYSQL() query from working.


There are only 3 or 4 codelines modified, you can consider the code as Public Domain, and adapt it to your licensing needs. I'd only like to see my name somewhere ;)
Comments:By: Serge Vecher (serge-v) 2006-08-30 11:34:54

andrea: as mentioned on the asterisk-dev list, you need to submit a disclaimer to Digium for this code to be reviewed. Please use either form from the bottom of this page http://bugs.digium.com/main_page.php and make a note here when you fax it in. Thanks!

By: Andrea Spadaccini (lupino3) 2006-09-06 02:34:21

the Disclaimer has just been sent via e-mail, as I have experienced some problems sending the fax from Italy (different fax dialects??).

I think that you can safely include the code now.

By: Andrea Spadaccini (lupino3) 2006-09-23 06:04:03

I sent the disclaimer some time ago: are there any other problems with this patch?


By: Sherwood McGowan (rushowr) 2006-09-23 06:46:50

I wanted to add in my 0.02USD. My main project has this patch implemented and it has proved useful and stable. That's it. Hope this makes it in soon!

By: Anthony LaMantia (alamantia) 2006-10-10 15:19:25

hi lupino3 ,

can you make some minor spacing modifications to comply with our coding guidelines.. ie some spacing changes  like if ()   and else if ()

and submit a svn diff of your patch aginst the suvervsion versions of asterisk-addons ..

By: Andrea Spadaccini (lupino3) 2006-10-13 10:58:42

hi alamantia,
I've just uploaded the patch, updated to the last SVN trunk.


By: Anthony LaMantia (alamantia) 2006-10-17 11:02:49


after testing it out for a short bit it seems to work well, anyone else have any feedback/thoughts on having this commited to asterisk-addons/trunk ?

By: jmls (jmls) 2006-11-16 14:47:10.000-0600

can someone at digium confirm that the disclaimer was received so that I can update the disclaimer status ? Thanks.

By: Anthony LaMantia (alamantia) 2006-11-16 16:04:47.000-0600

i have sent in a request for the status of the disclaimer, i will update this as soon as i get a reply.

By: Anthony LaMantia (alamantia) 2006-11-16 16:25:33.000-0600

after checking we have no disclaimer on file for you right now,
we would prefer that you send it in via fax, can you please try to do so again?

By: Malcolm Davenport (mdavenport) 2006-11-17 12:22:36.000-0600

License agreement received, verified, and filed.

By: Anthony LaMantia (alamantia) 2006-11-21 16:16:13.000-0600

assigned to mr. file for commital.

By: Joshua C. Colp (jcolp) 2006-11-28 10:42:14.000-0600

Put into 1.2 as of revision 316, 1.4 as of revision 317, and trunk as of revision 318. Thanks!