summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-07-22 18:05:08 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-07-22 18:06:09 +0200
commit86ec35f71d28061a21c00b12c23c41351002a701 (patch)
treef548cc07adc3146a2d67f465ab54657fe0b48599 /connectivity
parent7ae8da726747ce661dcd223b864d819f8b207819 (diff)
Fix implicit conversion error (firebird-sdbc).
Change-Id: I67ecd01655bdde73a279926c65f81555e550b7ca
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/FDatabaseMetaData.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/connectivity/source/drivers/firebird/FDatabaseMetaData.cxx b/connectivity/source/drivers/firebird/FDatabaseMetaData.cxx
index c2dde744f264..35fa88e55221 100644
--- a/connectivity/source/drivers/firebird/FDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/FDatabaseMetaData.cxx
@@ -705,11 +705,17 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLExceptio
{
return 31;
}
-// -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException)
+
+sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType(sal_Int32 setType)
+ throw(SQLException, RuntimeException)
{
- (void) setType;
- return sal_False;
+ switch (setType)
+ {
+ case ResultSetType::FORWARD_ONLY:
+ return sal_True;
+ default:
+ return sal_False;
+ }
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) throw(SQLException, RuntimeException)
@@ -1038,11 +1044,11 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
// 18. Is nullable
if (xRow->getShort(9))
{
- aCurrentRow.push_back(new ORowSetValueDecorator("NO"));
+ aCurrentRow.push_back(new ORowSetValueDecorator(OUString("NO")));
}
else
{
- aCurrentRow.push_back(new ORowSetValueDecorator("YES"));
+ aCurrentRow.push_back(new ORowSetValueDecorator(OUString("YES")));
}
aResults.push_back(aCurrentRow);