On Mon, Jun 27, 2005 at 04:40:18PM -0500, Nash Kabbara wrote:
> I tested this using the mysql c api and the same thing happened
> also. If I call mysql_ping on a MYSQL handle that hasn't been connected
> to the db, then the program core dumps.
>
> At least now I know this isn't caused by mysql++.
>
> I would assume that this should return a non-zero response as
> opposed to core dumping. Is my assumption correct? I can't seem to find
> any reference to this online.
No. If a function requires a MYSQL handle, you must give it a valid one,
not something with random data. (which is what an uninitialized handle is)
- Chris