DefaultExpression behavior

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DDlopez
Posts: 10
Joined: Tue 25 Aug 2020 06:47

DefaultExpression behavior

Post by DDlopez » Wed 02 Sep 2020 06:51

Hi,

We were using ODAC version 6.25 on Delphi 2006 . We purchased latest version of ODAC 11.2.5 and we have the following problem.

In older versions, DefaultExpression was expecting the values without quotes. But now it needs the quotes in the value in order to work and not throw ORA-00904 error.

In the topic viewtopic.php?t=16859 is said that using MemDS.DefaultExpressionOldBehavior := True it should work as before, but when I try to compile my project it cannot find MemDS.DefaultExpressionOldBehavior.

We have thousands of TOraQuery with DefaultExpression, we need help ASAP.

Thank you in advance

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

Re: DefaultExpression behavior

Post by MaximG » Wed 02 Sep 2020 12:09

The declaration of the global variable DefaultExpressionOldBehavior was move to the MemData unit :

Code: Select all

  uses MemData;
   ...
     DefaultExpressionOldBehavior := True;
   ...

DDlopez
Posts: 10
Joined: Tue 25 Aug 2020 06:47

Re: DefaultExpression behavior

Post by DDlopez » Wed 02 Sep 2020 12:26

Thank you! It worked!

Post Reply