List:MySQL++« Previous MessageNext Message »
From:Jo Ellen Brandmeyer Date:September 24 2004 6:27pm
Subject:RE: query.store, query.exec might yield in segmentation fault
View as plain text  
Just use execute when nothing will be returned and store when a result set is returned.
Put the statement within a try/catch block and handle whatever comes back - including a
null result set. Isn't this just good programming style?
 
Jo Ellen

________________________________

From: Warren Young [mailto:mysqlpp@stripped]
Sent: Fri 9/24/2004 2:04 PM
To: MySQL++ Mailing List
Subject: Re: query.store, query.exec might yield in segmentation fault



Earl Miles wrote:
>
> It's always been my understanding that external libraries are supposed
> to assume that the user is going to use the library improperly,

I take it you volunteering to write that SQL parser, then.  Thanks!  I
await your patch.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1



Thread
query.store, query.exec might yield in segmentation faultJose Mortensen24 Sep
  • Re: query.store, query.exec might yield in segmentation faultWarren Young24 Sep
  • RE: query.store, query.exec might yield in segmentation faultJose Mortensen29 Sep
Re: query.store, query.exec might yield in segmentation faultWarren Young24 Sep
RE: query.store, query.exec might yield in segmentation faultJo Ellen Brandmeyer24 Sep