summaryrefslogtreecommitdiff
path: root/lang/cxx/cxx_dbc.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /lang/cxx/cxx_dbc.cpp
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'lang/cxx/cxx_dbc.cpp')
-rw-r--r--lang/cxx/cxx_dbc.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/lang/cxx/cxx_dbc.cpp b/lang/cxx/cxx_dbc.cpp
index 642327d0..e16f7732 100644
--- a/lang/cxx/cxx_dbc.cpp
+++ b/lang/cxx/cxx_dbc.cpp
@@ -1,7 +1,7 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 1997, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2015 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
@@ -50,6 +50,24 @@ DBC_METHOD(cmp, (Dbc *other_cursor, int *result, u_int32_t _flags),
(dbc, other_cursor, result, _flags), DB_RETOK_STD)
DBC_METHOD(count, (db_recno_t *countp, u_int32_t _flags),
(dbc, countp, _flags), DB_RETOK_STD)
+
+int Dbc::db_stream(DbStream** dbsp, u_int32_t _flags)
+{
+ int ret;
+ DBC *dbc = this;
+ DB_STREAM *dbs = 0;
+
+ ret = dbc->db_stream(dbc, &dbs, _flags);
+
+ if (DB_RETOK_STD(ret))
+ *dbsp = (DbStream*)dbs;
+ else
+ DB_ERROR(DbEnv::get_DbEnv(dbc->dbenv),
+ "Dbc::db_stream", ret, ON_ERROR_UNKNOWN);
+
+ return (ret);
+}
+
DBC_METHOD(del, (u_int32_t _flags),
(dbc, _flags), DB_RETOK_DBCDEL)