Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCC complains for bool Value being ambiguous [ODBC199] #185

Closed
firebird-automations opened this issue Jun 17, 2016 · 2 comments
Closed

BCC complains for bool Value being ambiguous [ODBC199] #185

firebird-automations opened this issue Jun 17, 2016 · 2 comments

Comments

@firebird-automations
Copy link

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

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

status: Open [ 1 ] => Closed [ 6 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

Link: This issue depends on ODBC197 [ ODBC197 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants