Bug #49849 mysql.h (version 5.1) no longer define struct MYSQL and struct MYSQL_RES
Submitted: 21 Dec 2009 14:19 Modified: 21 Dec 2009 15:23
Reporter: François Trudel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S3 (Non-critical)
Version:5.1 OS:Windows
Assigned to: CPU Architecture:Any
Tags: C API, MySQL, MYSQL_RES, mysql.h

[21 Dec 2009 14:19] François Trudel
Description:
I am trying to compile mysql++ with the C API but it will not compile since the definitions of MYSQL (i.e. struct st_mysql) and MYSQL_RES (i.e. struct st_mysql_res) are no longer defined in mysql.h as they were in version 5.0.

 

How to repeat:
Open file mysql.h version 5.1 and compare with version 5.0

Suggested fix:
Fix mysql.h version 5.1
[21 Dec 2009 15:23] Valeriy Kravchuk
What exact version, 5.1.x, do you use? 

I current 5.1.43 I clearly see the following:

77-52-7-73:5.1 openxs$ find . -name mysql.h
./include/mysql/mysql.h
77-52-7-73:5.1 openxs$ grep -n MYSQL_RES include/mysql/mysql.h
306:    Points to boolean flag in MYSQL_RES  or MYSQL_STMT. We set this flag 
332:} MYSQL_RES;
407:  Functions to get information from the MYSQL and MYSQL_RES structures

So, structure is still defined there.
[21 Dec 2009 15:23] François Trudel
Installation problem caused by myself.