Page 1 of 1

DefaultExpression behavior

Posted: Wed 02 Sep 2020 06:51
by DDlopez
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

Re: DefaultExpression behavior

Posted: Wed 02 Sep 2020 12:09
by MaximG
The declaration of the global variable DefaultExpressionOldBehavior was move to the MemData unit :

Code: Select all

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

Re: DefaultExpression behavior

Posted: Wed 02 Sep 2020 12:26
by DDlopez
Thank you! It worked!