Direct mode fetches truncated column values

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Direct mode fetches truncated column values

Post by a-s-z » Mon 08 Apr 2013 15:05

Hi,

we have a problem when using direct mode against 11G. Please check this issue as soon as possible!

Transcript for test case follows:

Code: Select all

create table odac_varchar_error ( text varchar2(10 char) )
/
insert into odac_varchar_error values ( '1234567890' )
/
select
  text||' 12345678#' a1, 
  length(text),
  dump(text||' 12345678#') a1_dump
from odac_varchar_error 
/
The select will result in a truncated value in direct mode here ("1234567890 1" instead of "1234567890 12345678#")! Oci mode seems to be ok.

Best Regards,
Andre

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Direct mode fetches truncated column values

Post by AlexP » Tue 09 Apr 2013 11:28

Hello,

Please specify your ODAC and IDE versions, since this problem cannot be reproduced on the latest ODAC version 8.6.12.

a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Re: Direct mode fetches truncated column values

Post by a-s-z » Tue 09 Apr 2013 14:17

AlexP wrote:Hello,

Please specify your ODAC and IDE versions, since this problem cannot be reproduced on the latest ODAC version 8.6.12.
We are using Odac 8.6.12 and Delphi XE2. Problem only exists when Session.Options.UseUnicode does not equal Session.Options.Direct. We are connecting to Oracle 11.2.0.3.0

Output of test program follows, I can provide test program if needed:

Code: Select all

DACProductName DACVersion: ODAC 8.6.12
============================================================
select
  text||' 12345678#' a1, 
  length(text),
  dump(text||' 12345678#') a1_dump
from odac_varchar_error
------------------------------------------------------------
OracleVersion: 11.2.0.3.0
Options.Direct: True
Options.UseUnicode: True
Fields[0]: "1234567890 1"
------------------------------------------------------------
------------------------------------------------------------
OracleVersion: 11.2.0.3.0
Options.Direct: True
Options.UseUnicode: False
Fields[0]: "1234567890 12345678#"
------------------------------------------------------------
------------------------------------------------------------
OracleVersion: 11.2.0.3.0
Options.Direct: False
Options.UseUnicode: True
Fields[0]: "1234567890 12345678#"
------------------------------------------------------------
------------------------------------------------------------
OracleVersion: 11.2.0.3.0
Options.Direct: False
Options.UseUnicode: False
Fields[0]: "1"
------------------------------------------------------------
Best Regards,
Andre

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Direct mode fetches truncated column values

Post by AlexP » Wed 10 Apr 2013 10:00

Hello,

Thank you for the information, we have reproduced the problem and will try to fix it as soon as possible.

a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Re: Direct mode fetches truncated column values

Post by a-s-z » Wed 10 Apr 2013 10:15

Hi Alex,
AlexP wrote:Thank you for the information, we have reproduced the problem and will try to fix it as soon as possible.
Thanks. Please provide code patch / direct mode dcu, if new odac version is not released soon. I can compile Odac locally.

Best Regards,
Andre

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Direct mode fetches truncated column values

Post by AlexP » Wed 17 Apr 2013 10:14

Hello,

We have already fixed this problem. This fix will be included in the new version, that will be released next week.

Post Reply