summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2009-10-07 14:41:16 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2009-10-07 14:41:16 +0000
commit23f78bc99355f9b4bdd856b9ecf027be5f3aedce (patch)
tree2c911b9c7fe677c08f8338774bcfd3e71ca0fe87
parent90099eeb53884be7461596fba9ceb74b6e363304 (diff)
#i10000# WAE
-rw-r--r--connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx b/connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx
index 5d5e0c97ac..26fa1e13a0 100644
--- a/connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx
+++ b/connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx
@@ -126,13 +126,13 @@ SQLSMALLINT OResultSetMetaData::getColumnODBCType(OConnection* _pConnection
SQLSMALLINT nType = 0;
try
{
- nType = getNumColAttrib(_pConnection,_aStatementHandle,_xInterface,column,SQL_DESC_CONCISE_TYPE);
+ nType = (SQLSMALLINT)getNumColAttrib(_pConnection,_aStatementHandle,_xInterface,column,SQL_DESC_CONCISE_TYPE);
if(nType == SQL_UNKNOWN_TYPE)
- nType = getNumColAttrib(_pConnection,_aStatementHandle,_xInterface,column, SQL_DESC_TYPE);
+ nType = (SQLSMALLINT)getNumColAttrib(_pConnection,_aStatementHandle,_xInterface,column, SQL_DESC_TYPE);
}
catch(SQLException& ) // in this case we have an odbc 2.0 driver
{
- nType = getNumColAttrib(_pConnection,_aStatementHandle,_xInterface,column,SQL_DESC_CONCISE_TYPE );
+ nType = (SQLSMALLINT)getNumColAttrib(_pConnection,_aStatementHandle,_xInterface,column,SQL_DESC_CONCISE_TYPE );
}
return nType;