summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2009-10-05 14:06:09 +0000
committerVladimir Glazounov <vg@openoffice.org>2009-10-05 14:06:09 +0000
commit15523f66b9b13f30c4b0b31cd211c957c690e76d (patch)
tree2c911b9c7fe677c08f8338774bcfd3e71ca0fe87 /connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx
parentc6e93aae1e17af0d671e3d52e3dfe17927900c5e (diff)
#i10000# fix for WAE
Diffstat (limited to 'connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx')
-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;