Feedback
Did this article resolve your question/issue?

   

Article

Parameterized Insert fails for blob datatype using Oracle ODBC driver

Information

 
TitleParameterized Insert fails for blob datatype using Oracle ODBC driver
URL Nameparameterized-insert-fails-for-blob-datatype-using-oracle-odbc-driver
Article Number000113520
EnvironmentProduct: Progress DataDirect for ODBC for Oracle Wire Protocol driver
Version: 8.0.2204
OS: Windows
Database: Oracle 12c Enterprise Edition
Application: All supported platforms
Question/Problem Description
When attempting parameterized insert for Blob data type in Oracle 12c database version v12.2.0.1.0 or higher, the Progress DataDirect for ODBC Oracle driver returned the following error
Steps to ReproduceCreate the following table:

Create table test_long (COL1 NUMBER(38), COL2 NUMBER(38), COL3 BLOB, COL4 CHAR(12))

Execute the following Insert query

insert into test_long values(?, ?, ?, ? )

Try inserting the following values and the error will be returned
Values as:
1, 0, '308223D0308222B8A14A31133011060A0992268993F22C6401191603636F6D31173015060A0992268993F22C6401191607656E7472757374310D300B060355040313044E474A41310B30090603550403', 'b8exRtCn32Y='
Clarifying Information
Error MessageDIAG [S1000] [Security Manager][ODBC Oracle Wire Protocol driver][Oracle]ORA-01461: can bind a LONG value only for insert into a LONG column (1461)
Defect NumberDefect XDBC-13969
Enhancement Number
Cause
The driver was not correctly formatting the packet for the data length.
Resolution
Fixed in hot fix 08.02.2214 (B0451, U0310)
Refer to "Connect and Connect64 for ODBC hot fix download and install instructions" for instructions on how to download and install the hot fix.
Workaround
Notes
Last Modified Date8/29/2019 6:45 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.