Skip to content

Commit

Permalink
Initiated implementation for ODBC-152. Boolean type support for Fireb…
Browse files Browse the repository at this point in the history
…ird 3
  • Loading branch information
alexpotapchenko committed May 14, 2013
1 parent 31ff22d commit f32b1a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion IscDbc/IscDbc.h
Expand Up @@ -35,7 +35,7 @@
#include "LoadFbClientDll.h"

#ifndef SQL_BOOLEAN
#define SQL_BOOLEAN 590
#define SQL_BOOLEAN 32764
#endif

#ifndef NULL
Expand Down
2 changes: 1 addition & 1 deletion IscDbc/JavaType.h
Expand Up @@ -55,7 +55,7 @@
#define JDBC_SQL_TIME 10
#define JDBC_SQL_TIMESTAMP 11

#define JDBC_BOOLEAN 16
#define JDBC_BOOLEAN -7

#define JDBC_DATE 91
#define JDBC_TIME 92
Expand Down
5 changes: 4 additions & 1 deletion IscDbc/Sqlda.h
Expand Up @@ -44,7 +44,10 @@ class CAttrSqlVar

void operator = ( XSQLVAR *var )
{
*(QUAD*)this = *(QUAD*)var;
sqltype = var->sqltype;
sqlscale = var->sqlscale;
sqlsubtype = var->sqlsubtype;
sqllen = var->sqllen;
varOrg = var;
}

Expand Down
4 changes: 0 additions & 4 deletions OdbcConvert.cpp
Expand Up @@ -135,10 +135,6 @@ ADRESS_FUNCTION OdbcConvert::getAdressFunction(DescRecord * from, DescRecord * t
switch(from->conciseType)
{
case SQL_C_BIT:
if ( to->isIndicatorSqlDa )
return &OdbcConvert::transferStringToAllowedType;
break;

case SQL_C_TINYINT:
case SQL_C_UTINYINT:
case SQL_C_STINYINT:
Expand Down

0 comments on commit f32b1a0

Please sign in to comment.