Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba100c9

Browse files
committed
clarify the behavior of the .first() and .last() methods for empty
databases this should be backported to the release23-maint branch
1 parent f54ac7e commit ba100c9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/lib/libbsddb.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ \subsection{Hash, BTree and Record Objects \label{bsddb-objects}}
135135
\begin{methoddesc}{first}{}
136136
Set the cursor to the first item in the DB file and return it. The order of
137137
keys in the file is unspecified, except in the case of B-Tree databases.
138+
This method raises \exception{bsddb.error} if the database is empty.
138139
\end{methoddesc}
139140

140141
\begin{methoddesc}{next}{}
@@ -153,6 +154,7 @@ \subsection{Hash, BTree and Record Objects \label{bsddb-objects}}
153154
Set the cursor to the last item in the DB file and return it. The
154155
order of keys in the file is unspecified. This is not supported on
155156
hashtable databases (those opened with \function{hashopen()}).
157+
This method raises \exception{bsddb.error} if the database is empty.
156158
\end{methoddesc}
157159

158160
\begin{methoddesc}{sync}{}

0 commit comments

Comments
 (0)