000183039
MySQL driver inserted incorrect data when using a stored procedure.
Information |
Title | MySQL driver inserted incorrect data when using a stored procedure. |
---|
URL Name | MySQL-driver-inserted-incorrect-data-when-using-a-stored-procedure |
---|
Article Number | 000183039 |
---|
Environment | Product: Connect for ODBC My SQL Wire Protocol driver
Version: 7.10.05.170 OS: All supported platforms Database: MySQL Enterprise Server v5.7.9 Application: All supported applications |
---|
Question/Problem Description |
|
---|
Steps to Reproduce | 1. Create Table:
CREATE TABLE table_sp_varbinary (col_varbinary1 VARBINARY(255) NULL,col_varbinary2 VARBINARY(255) NULL ) 2. Create Stored Procedure CREATE PROCEDURE `sp_varbinary_test`(IN f1 VARBINARY(255), IN f2 VARBINARY(255)) BEGIN INSERT INTO table_sp_varbinary (col_varbinary1, col_varbinary2) VALUES (f1, f2); END 3. Prepare and bind parameters with the following values , and execute the stored procedure. param1: 0x4142 param2: 0x4546 4. Select data using the following select query and it returns the incorrect results. select HEX(col_varbinary1), HEX(col_varbinary2) from table_sp_varbinary returns E48981 E49985 |
---|
Clarifying Information |
---|
Error Message |
---|
Defect Number | Defect: 40429 |
---|
Enhancement Number |
---|
Cause |
---|
Resolution |
|
---|
Workaround |
---|
Notes |
---|
Last Modified Date | 7/7/2016 8:51 PM |
---|
Files |
Disclaimer |
The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information. Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages. |