Bug #3689 Wrong download for Linux x86 devel RPM
Submitted: 7 May 2004 20:51 Modified: 7 May 2004 20:55
Reporter: Ken Paradox Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:5.0.0 OS:Linux (RedHat Linux)
Assigned to: Dean Ellis CPU Architecture:Any

[7 May 2004 20:51] Ken Paradox
Description:
Hello,
I have been using prepared statements in the C API in version 4.1.1, and just upgraded my development system to version 5.0.0.  It seems that the download MySQL-devel-5.0.0-0.i386.rpm does not contain the correct files for version 5.0.0.  I got the download from ftp://ftp.orst.edu.  

The MySQL on-line manual describes name changes for many of the prepared statement functions, such as mysql_get_metadata() changes to mysql_stmt_result_metadata() (see http://dev.mysql.com/doc/mysql/en/C_API_Prepared_statement_functions.html).

I have installed the devel RPM listed above.  The files in /usr/include/mysql all display time stamps from 12/23/03.  The file mysql.h describes all of the functions of the API, and the old names are used for all of the prepared statement calls.

I do not think the API will work in version 5.0.0 unless I can get the correct libraries and include files.

How to repeat:
Install the rpm listed above as an upgrade to version 4.1.1:

rpm -U MySQL-devel-...

Change names of functions in c program to use new 5.0.0 prepared statement call names.

Try to compile and link the program.
[7 May 2004 20:55] Dean Ellis
The API changes were made after 5.0 was released, so it is still using the older names for the Prepared Statement functions.  The development branch (5.0.1) does have the new functions, if you want to pull a source snapshot or clone the development tree.