Page 1 of 1

ODAC 6.50.0.35 - Error "OraSession.OptimizerMode = omChoose"

Posted: Thu 19 Jun 2008 08:01
by usuarioincorrecto
Hi;

When using the next sentence while defining Session parameters, Delphi does not compile:

OraSession.OptimizerMode = omChoose;


If you try to compile your project, you will not be able to do it.
It worked OK with ODAC 6.25.2.15, but next version and the latest one, it fails.
The error is: "omChoose is undeclared"

If you use omDefault, omFirstRows, etc... etc... it ALSO FAILS.

We are using Delhi 6 and Oracle 10g in Direct Mode.

Waiting for response

Regards;

Posted: Thu 19 Jun 2008 14:22
by Challenger
We have moved the TOptimizerMode type to the OraClasses unit. Please include it into the uses clause of your unit.

OK... but

Posted: Fri 20 Jun 2008 06:43
by usuarioincorrecto
Thank you;

But.... shouldn't it be especified from now on, in any document (in the ODAC Help it does not especify anything but the Ora Unit) and avoid asking this kind of questions to you? :roll:

Regards

Posted: Fri 20 Jun 2008 08:05
by Challenger
You are right. We will modify ODAC Help in the next build.