Bug #6589 Client trap with numeric values in prepared statements
Submitted: 12 Nov 2004 9:55 Modified: 12 Nov 2004 18:57
Reporter: Vincent De Groote Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:4.1.7 OS:Windows (Windows XP)
Assigned to: CPU Architecture:Any

[12 Nov 2004 9:55] Vincent De Groote
Description:
The client traps when processing a prepared statement with a numeric field.  Other tested fields seems ok.

How to repeat:
See attached files:

- database and table creation statements
- source code of client
- compilation batch
[12 Nov 2004 9:56] Vincent De Groote
Database and table creation

Attachment: db_types.sql (text/plain), 445 bytes.

[12 Nov 2004 9:57] Vincent De Groote
Client code

Attachment: preptest.c (application/octet-stream, text), 3.28 KiB.

[12 Nov 2004 9:57] Vincent De Groote
Client compilation batch file

Attachment: build_prep.bat (application/octet-stream, text), 265 bytes.

[12 Nov 2004 18:57] MySQL Verification Team
Thank you for the bug report. Indeed I tested with the mysqlclient.lib
shipped with release package and I got an exception from the client
library, however doing a test with a library build from current BK
source this exception doesn't exists anymore:

C:\temp>bug6589.exe
Successfully connected to database
Testing query: 'select v_numeric from `all_types`'
mysql_stmt_init...
mysql_stmt_prepare...
mysql_stmt_attr_set...
mysql_stmt_execute...
mysql_stmt_store_result...
mysql_stmt_result_metadata...
Testing query: DONE