BCC complains for bool Value being ambiguous [ODBC199]
firebird-automations opened this issue · 2 comments
Submitted by: Dimitar Zhekov (sheckley)
Depends on ODBC197
D:\...\OdbcJdbc\Builds\Bcc55.win>C:\Borland\BCC55\bin\make -f makefile.bcc55 COMPDIR=C:\Borland\BCC55 VER_NT= FIREBIRD=D:\...\Firebird Release\odbcfb.dll
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
...
Error E2015 ..\..\IscDbc\IscStatement.cpp 829: Ambiguity between 'IscDbcLibrary::Value::setValue(int,int)' and 'IscDbcLibrary::Value::setValue(__int64,int)' in function IscDbcLibrary::IscStatement::setValue(IscDbcLibrary::Value *,XSQLVAR *)
Error E2228 ..\..\IscDbc\IscStatement.cpp 829: Too many error or warning messages in function IscDbcLibrary::IscStatement::setValue(IscDbcLibrary::Value *,XSQLVAR *)
*** 2 errors in Compile ***
** error 1 ** deleting Release\obj\IscStatement.obj
The message is clear enough. I fixed it by using:
#ifdef __BORLANDC__
value->setValue ((int) *(TYPE_BOOLEAN*) var->sqldata, var->sqlscale);
#else
value->setValue (*(TYPE_BOOLEAN*) var->sqldata, var->sqlscale);
#endif