summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-02 10:48:21 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-02 15:39:51 +0200
commit5292d90f24b7d0f29445c4634dd9219d8d6ea3d7 (patch)
tree447d2a642ea54fe81c85be4b740fcfb96e0c729f /connectivity
parentd74ca3bc9927f941cda810b655393ad18eea1a6e (diff)
Implement supportsResultSetConcurrency. (firebird-sdbc)
Change-Id: Id830f703c40c3b16db5f6237325762619cbe54eb
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index 87b7ae623cf2..b12c79b0a609 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -746,12 +746,17 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType(sal_Int32 setType)
return sal_False;
}
}
-// -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) throw(SQLException, RuntimeException)
+
+sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(
+ sal_Int32 aResultSetType,
+ sal_Int32 aConcurrency)
+ throw(SQLException, RuntimeException)
{
- (void) setType;
- (void) concurrency;
- return sal_False;
+ if (aResultSetType == ResultSetType::FORWARD_ONLY
+ && aConcurrency == ResultSetConcurrency::READ_ONLY)
+ return sal_True;
+ else
+ return sal_False;
}
// -------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException)