From: Eli Zaretskii Date: Sun, 30 Oct 2022 08:31:00 +0000 (+0200) Subject: ; * src/sqlite.c (Fsqlite_select): Doc fix. (Bug#58885) X-Git-Tag: emacs-29.0.90~1616^2~384 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ceaa918295e3038fcca9950410ada5d46edfdbe;p=emacs.git ; * src/sqlite.c (Fsqlite_select): Doc fix. (Bug#58885) --- diff --git a/src/sqlite.c b/src/sqlite.c index d6cb38a29ad..08bf696b8ca 100644 --- a/src/sqlite.c +++ b/src/sqlite.c @@ -528,14 +528,15 @@ DEFUN ("sqlite-select", Fsqlite_select, Ssqlite_select, 2, 4, 0, If VALUES is non-nil, it should be a list or a vector specifying the values that will be interpolated into a parameterized statement. -By default, the return value is a list where the first element is a -list of column names, and the rest of the elements are the matching data. - -RETURN-TYPE can be either nil (which means that the matching data -should be returned as a list of rows), or `full' (the same, but the -first element in the return list will be the column names), or `set', -which means that we return a set object that can be queried with -`sqlite-next' and other functions to get the data. */) +By default, the return value is a list, whose contents depend on +the value of the optional argument RETURN-TYPE. + +If RETURN-TYPE is nil or omitted, the function returns a list of rows +matching QUERY. If RETURN-TYPE is `full', the function returns a +list whose first element is the list of column names, and the rest +of the elements are the rows matching QUERY. If RETURN-TYPE is `set', +the function returns a set object that can be queried with functions +like `sqlite-next' etc., in order to get the data. */) (Lisp_Object db, Lisp_Object query, Lisp_Object values, Lisp_Object return_type) {