summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-19 20:18:20 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-19 20:37:55 +0100
commit101040a13010edca81d1ad127726d4118f00c5e0 (patch)
tree3d7316fdfc96a6303a69f27cc6529140710f9a2d /connectivity
parent831f01b7395fd84449e133e1300cc8fa85d42bd3 (diff)
Set sane default for type.
Change-Id: Ib63e6abd7b378671d1e01bf9357dd811ae88fc40
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.cxx6
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx
index 0fdcc0930340..087453dfc860 100644
--- a/connectivity/source/drivers/firebird/ResultSet.cxx
+++ b/connectivity/source/drivers/firebird/ResultSet.cxx
@@ -550,14 +550,14 @@ sal_Bool SAL_CALL OResultSet::getBoolean(sal_Int32 nColumnIndex)
throw(SQLException, RuntimeException)
{
// Not a native firebird type hence we always have to convert.
- return safelyRetrieveValue< ORowSetValue >(nColumnIndex, 0);
+ return safelyRetrieveValue< ORowSetValue >(nColumnIndex);
}
sal_Int8 SAL_CALL OResultSet::getByte(sal_Int32 nColumnIndex)
throw(SQLException, RuntimeException)
{
// Not a native firebird type hence we always have to convert.
- return safelyRetrieveValue< ORowSetValue >(nColumnIndex, 0);
+ return safelyRetrieveValue< ORowSetValue >(nColumnIndex);
}
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 columnIndex)
@@ -603,7 +603,7 @@ OUString SAL_CALL OResultSet::getString(sal_Int32 nIndex)
throw(SQLException, RuntimeException)
{
// TODO: special handling for char type?
- return safelyRetrieveValue< OUString >(nIndex, 0);
+ return safelyRetrieveValue< OUString >(nIndex);
}
Date SAL_CALL OResultSet::getDate(sal_Int32 nIndex)
diff --git a/connectivity/source/drivers/firebird/ResultSet.hxx b/connectivity/source/drivers/firebird/ResultSet.hxx
index 6a1ede09d361..db68c066e936 100644
--- a/connectivity/source/drivers/firebird/ResultSet.hxx
+++ b/connectivity/source/drivers/firebird/ResultSet.hxx
@@ -99,7 +99,7 @@ namespace connectivity
template <typename T> T safelyRetrieveValue(
const sal_Int32 nColumnIndex,
- const ISC_SHORT nType);
+ const ISC_SHORT nType = 0);
// OIdPropertyArrayUsageHelper
virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const;