mysql_stmt_prepare() error code
Posted by: Shiv G
Date: March 24, 2011 08:50AM

Hi,

I'm using C api lib version 5.1.53 on Linux
Server version: 5.1.55-community MySQL Community Server (GPL)

when server has dropped the connection, mysql_stmt_prepare() is returning "1" instead of "CR_SERVER_GONE_ERROR".

while mysql_stmt_error() is correctly returning "MySQL server has gone away" error message.

any thoughts on why mysql_stmt_prepare() is not returning the correct error code?

Thanks,
Shiv



Edited 1 time(s). Last edit at 03/24/2011 09:12AM by Shiv G.

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql_stmt_prepare() error code
1409
March 24, 2011 08:50AM
627
March 25, 2011 08:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.