Page 1 of 1

Junk data appearing after literals

Posted: Fri 16 Oct 2020 13:53
by jdorlon
Hello,

I am using the latest version of ODAC. This problem did not occur with version 10.4, but I don't know exactly when it started.

Compiling in either 32 or 64 bit VCL, RAD Studio 10.1 Berlin.

I have reproduced this with multiple Oracle versions (12.2 and 19.0) and with multiple database character sets (EE8ISO8859P2 and UTF8)

Just run these SQLs, in order, in a TSmartQuery connected to a TDBGrid.

Code: Select all

alter session set "_adjust_literal_replacement"=FALSE;

alter session set cursor_sharing = 'FORCE';

SELECT '1' AS col1,
       'TEST' AS col2,
       cast ('1' AS CHAR (8)) AS col1_aschar,
       cast ('TEST' AS CHAR (8)) AS col2_aschar
FROM dual;
The problem is that I get some junk characters after the literals in the first two columns.

For example, in the first column, I get : 1í
and in the second column, I get TEST (edit: there was some junk data after this too but I guess the forum removed it)

The junk data changes if I re-execute the SELECT. And it only seems to happen if I select literals. When I select CHAR values from a table, the problem does not occur.

Thanks.

Re: Junk data appearing after literals

Posted: Tue 20 Oct 2020 15:30
by MaximG
We couldn't reproduce the issue in our environment. We tested ODAC with Oracle 19c with NLS_CHARACTERSET=AL32UTF8. Please send us the source code of your example and the NLS parameters of your Oracle server.
For your convenience, please use the e-support form https://www.devart.com/company/contactform.html

Re: Junk data appearing after literals

Posted: Tue 20 Oct 2020 17:40
by jdorlon
Thank you, I have sent a demo app using the e-support forum.

Re: Junk data appearing after literals

Posted: Fri 12 Feb 2021 11:16
by MaximG
The fix will be included in the next version of ODAC. Please let us know if you need any further assistance.

Re: Junk data appearing after literals

Posted: Fri 12 Feb 2021 13:48
by jdorlon
Thanks for all your help, Maxim!

Re: Junk data appearing after literals

Posted: Mon 22 Aug 2022 05:01
by lorde
MaximG wrote: Fri 12 Feb 2021 11:16 The fix will be included in the next version of ODAC. Please let us know if you need any further assistance.
Thank you very much, hope the new ODAC version will be better

nyt wordle