Issue Details (XML | Word | Printable)

Key: ODBC-199
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Alexander Potapchenko
Reporter: Dimitar Zhekov
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
ODBC Driver

BCC complains for bool Value being ambiguous

Created: 17/Jun/16 12:41 PM   Updated: 05/Jul/16 09:30 PM
Component/s: None
Affects Version/s: 2.0.3
Fix Version/s: None

Environment: Windows 32-bit, BCC 5.5.1
Issue Links:

 Description  « Hide
D:\...\OdbcJdbc\Builds\>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);
        value->setValue (*(TYPE_BOOLEAN*) var->sqldata, var->sqlscale);

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.