Oracle - error "value is too long" assigning huge string to clob parameter

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
osinfocer
Posts: 1
Joined: Tue 15 Feb 2022 09:25

Oracle - error "value is too long" assigning huge string to clob parameter

Post by osinfocer » Tue 15 Feb 2022 09:40

I'm using Unidac 9.1.1 Delphi 10.2, recently ugraded from 8.3.2.

I have following error using Oracle DB:

Parameter 'MYPARAM': value is too long

assigning an huge string to CLOB param e.g.:

MyUniQuery.Param('MYPARAM').AsString := 'myhugestring...';

Data type of MYPARAM is not defined. If i define it as "OraClob" it works

In version 8.3.2 it was not necessary to define Data Type. Defining it as OraClob i introduce a DB dependency.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Oracle - error "value is too long" assigning huge string to clob parameter

Post by MaximG » Thu 17 Feb 2022 15:22

When using CLOB parameters, we recommend explicitly specifying their type. In any case, we will investigate the behavior you describe. For this, compose and send us a small sample, which when executed causes the "value is too long" error. It is convenient to do it using the e-support form (https://www.devart.com/company/contactform.html)

Post Reply