IsolationLevel. Ambiguity

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Aventurine
Posts: 3
Joined: Mon 03 Nov 2008 22:06

IsolationLevel. Ambiguity

Post by Aventurine » Mon 03 Nov 2008 22:33

Hello,
using C++ Builder6 and MyDac 5.20.1.14
When i try to compile the program with following code

Code: Select all

MyConnection->IsolationLevel = ilReadCommitted
the error is

Code: Select all

ambiguity between 'ilReadCommitted' and 'Craccess::ilReadCommitted'
With ilSerializable the same error but everything fine with ilReadUnCommitted and ilRepeatableRead
When i write

Code: Select all

MyConnection->IsolationLevel = Craccess::ilReadCommitted
error

Code: Select all

Assingning TCRIsolationLevel to TMyIsolationLevel
So Craccess is class of Builder
When i try to write

Code: Select all

MyConnection->IsolationLevel = DBAccess::ilReadCommitted
error

Code: Select all

'DBAccess' is not a class or namespace name
however, i have #pragma link "DBAccess"

So what should i do?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 04 Nov 2008 10:44

To solve this problem you should use the following code:

Code: Select all

  MyConnection->IsolationLevel = Myclasses::ilReadCommitted;

Post Reply