Segfault in mysql_stmt_close (4.1 libmysql)

Segfault in mysql_stmt_close (4.1 libmysql)

am 22.11.2002 16:46:47 von Georg Richter

Hi,

when I use mysql_stmt_close (without binding any parameter before) it
segfaults:

How-to-repeat:

MYSQL_STMT *stmt;


strcpy(query, "SELECT foo from bar where foo=? and foo1=?");
stmt = mysql_prepare(mysql, query, strlen(query));
mysql_stmt_close(stmt); /* segfault */


Regards

Georg

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13083@lists.mysql.com
To unsubscribe, e-mail

Re: Segfault in mysql_stmt_close (4.1 libmysql)

am 22.11.2002 20:02:56 von Venu

On Fri, 2002-11-22 at 07:46, Georg Richter wrote:
> Hi,
>
> when I use mysql_stmt_close (without binding any parameter before) it
> segfaults:
>
> How-to-repeat:
>
> MYSQL_STMT *stmt;
>
>
> strcpy(query, "SELECT foo from bar where foo=? and foo1=?");
> stmt = mysql_prepare(mysql, query, strlen(query));
> mysql_stmt_close(stmt); /* segfault */
>


You need to use the latest source base ..

Thanks

--
Regards, Venu
For technical support contracts, go to https://order.mysql.com
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Venu
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Developer
/_/ /_/\_, /___/\___\_\___/ California, USA
<___/ www.mysql.com



------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13085@lists.mysql.com
To unsubscribe, e-mail