Bug #2278 mysql_prepare and mysql_execute not exported in libmysqld
Submitted: 4 Jan 2004 22:30 Modified: 20 Jan 2004 10:52
Reporter: Chris Plumlee Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S2 (Serious)
Version:4.1.1a OS:Windows (Windows XP Home)
Assigned to: Alexey Botchkov CPU Architecture:Any

[4 Jan 2004 22:30] Chris Plumlee
Description:
mysql_prepare() and mysql_execute() calls generate linker errors when compiled with the server libmysqld rather than the client libmysql.  I checked the source and found that these calls are missing from the libmysqld .DEF file.

I saw that this bug existed in the client libmysql on the previous release -- please do not confuse this report with that one.

How to repeat:
MYSQL_STMT *nodeReadStatement;
nodeReadStatement = mysql_prepare(readPipe, NODESELECTSTATEMENT, strlen  (NODESELECTSTATEMENT));
mysql_execute(nodeReadStatement);

Compiled against libmysqld (static or dynamic).

Suggested fix:
Please add mysql_prepare and mysql_execute to libmysqld.def.
[20 Jan 2004 10:52] Alexey Botchkov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

changeset 'bk commit - 4.1 tree (hf:1.1679)' 20 Jan 2004