Print Thread
[bcc32 Error] E2015 Ambiguity in Oracle::TOracleQuery::FieldAsInteger method
#56937 08/25/17 08:21 AM
Joined: Aug 2017
Posts: 1
P
Member
OP Offline
Member
P
Joined: Aug 2017
Posts: 1
Hi,

I'm trying to compile an old BCB2006 project with Rad Studio C++ Builder v. Tokyo. I'm using trail version of DOA components for Tokyo C++ Builder.
I've already dealt with this AnsiString-WideString-UnicodeString mess, caused by changes in 2009 version (Unicode implementation). But now, using DOA componets, I encountered another compiler error:

E2015 Ambiguity between '_fastcall Oracle::TOracleQuery::FieldAsInteger(const System::UnicodeString) at c:\program files (x86)\embarcadero\studio\19.0\include\windows\vcl\Oracle.hpp:1061' and '_fastcall Oracle::TOracleQuery::FieldAsInteger(const System::WideString) at c:\program files (x86)\embarcadero\studio\19.0\include\windows\vcl\Oracle.hpp:1082'

It occurs also for "FieldAsString" method.
The way I call those methods is: FieldAsInteger("field_1").
So it looks like the compiler has problem with deciding whether the string "field_1" is an UnicodeString or a WideString.

Have you seen this error before? Could you advise me how to solve this problem ?

Re: [bcc32 Error] E2015 Ambiguity in Oracle::TOracleQuery::FieldAsInteger method
Patrycja #56939 08/25/17 08:57 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
We'll look into this.


Marco Kalter
Allround Automations
Re: [bcc32 Error] E2015 Ambiguity in Oracle::TOracleQuery::FieldAsInteger method
Marco Kalter #56956 08/26/17 10:11 AM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
I created a test project in C++Builder Tokyo and added a line with a OracleQuery->FieldAsInteger("field") call. It compiled and ran just fine.

Can you let me know how exactly in your project this function is called?


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.036s Queries: 15 (0.008s) Memory: 2.5009 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-05-05 04:43:33 UTC
Valid HTML 5 and Valid CSS