Hello all,

I am running into a problem with the C client and I would like to know if
the error I am seeing is expected or not.

The application I am running does not know anything about the SQL statements
it is running.  So I don't know whether
I am executing a statement with bound parameters or not.

I call mysql_prepare on a statement to see if there are any parameters to
bind.  Currently I observe that if there are no
placeholders in the SQL Statement then mysql_prepare returns a NULL
MYSQL_STMT.  That is fine, but when I go on to
make the subsequent mysql_real_query call, my application crashes.

I have found if I comment out the call to mysql_prepare the subsequent
execution works fine so it seems that something is
happening to the MYSQL connection structure and leaving it in a bad state.

Is this supposed to happen?  Is it a bug?  Does anyone have any advice for a
different way to check and see if a SQL statement
has parameters that can be bound (without parsing the string myself)?

Thanks!
Dave

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to