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?
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