Can I get date-type field values to string?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ysyang99
Posts: 16
Joined: Tue 04 Dec 2012 08:43

Can I get date-type field values to string?

Post by ysyang99 » Sat 05 Jan 2019 16:04

Hello,

I use ODAC 10.3.8 with Delphi 2009 and Oracle 11.2.0.2.0
Can I get date-type field values to string?

The return value of ODAC is as follows.

1. OraSession.Direct = False , Qry.FieldsAsString = False;

SQL>select sysdate from dual;
sysdate
------------------------
2019-01-06 오전 12:44:01

2. OraSession.Direct = False , Qry.FieldsAsString = True;

SQL>select sysdate from dual;
sysdate
------------------------
06-JAN-19


3. OraSession.Direct = True , Qry.FieldsAsString = False;

SQL>select sysdate from dual;
sysdate
------------------------
2019-01-06 오전 12:44:01

4. OraSession.Direct = False , Qry.FieldsAsString = True;

SQL>select sysdate from dual;
sysdate
------------------------
xw3

=> When Orasession.Option.Direct is True and Qry.FieldsAsString is True, sysdate valus was broken
There was no problem with previous versions. mayby 10.2.6 09

Best regards,
Benajmin Yang

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

Re: Can I get date-type field values to string?

Post by MaximG » Wed 09 Jan 2019 15:57

Thank you for the information. We will investigate the described issue and let you know the results shortly.

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

Re: Can I get date-type field values to string?

Post by MaximG » Thu 17 Jan 2019 07:37

We reproduced the issue and fixed this error. The required changes are included in the new ODAC build, which we plan to release next week.

ysyang99
Posts: 16
Joined: Tue 04 Dec 2012 08:43

Re: Can I get date-type field values to string?

Post by ysyang99 » Thu 17 Jan 2019 19:15

I am always thankful for your hard work.

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

Re: Can I get date-type field values to string?

Post by MaximG » Fri 18 Jan 2019 17:20

Please don't hesitate to contact us with questions concerning our product usage.

Post Reply