Page 1 of 1

IsolationLevel. Ambiguity

Posted: Mon 03 Nov 2008 22:33
by Aventurine
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?

Posted: Tue 04 Nov 2008 10:44
by Dimon
To solve this problem you should use the following code:

Code: Select all

  MyConnection->IsolationLevel = Myclasses::ilReadCommitted;