ODAC 6.50.0.35 - Error "OraSession.OptimizerMode = omChoose"

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
usuarioincorrecto
Posts: 18
Joined: Thu 28 Jun 2007 12:43

ODAC 6.50.0.35 - Error "OraSession.OptimizerMode = omChoose"

Post by usuarioincorrecto » Thu 19 Jun 2008 08:01

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;

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Thu 19 Jun 2008 14:22

We have moved the TOptimizerMode type to the OraClasses unit. Please include it into the uses clause of your unit.

usuarioincorrecto
Posts: 18
Joined: Thu 28 Jun 2007 12:43

OK... but

Post by usuarioincorrecto » Fri 20 Jun 2008 06:43

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

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Fri 20 Jun 2008 08:05

You are right. We will modify ODAC Help in the next build.

Post Reply