diff options
| author | Eli Zaretskii | 2022-10-30 10:31:00 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-10-30 10:31:00 +0200 |
| commit | 3ceaa918295e3038fcca9950410ada5d46edfdbe (patch) | |
| tree | 454d7a06d5f372dac40de94beff362cddd28866b /src/sqlite.c | |
| parent | b489ca507058c7d23df6a3339bd30a6dc39fa55e (diff) | |
| download | emacs-3ceaa918295e3038fcca9950410ada5d46edfdbe.tar.gz emacs-3ceaa918295e3038fcca9950410ada5d46edfdbe.zip | |
; * src/sqlite.c (Fsqlite_select): Doc fix. (Bug#58885)
Diffstat (limited to 'src/sqlite.c')
| -rw-r--r-- | src/sqlite.c | 17 |
1 files changed, 9 insertions, 8 deletions
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, | |||
| 528 | If VALUES is non-nil, it should be a list or a vector specifying the | 528 | If VALUES is non-nil, it should be a list or a vector specifying the |
| 529 | values that will be interpolated into a parameterized statement. | 529 | values that will be interpolated into a parameterized statement. |
| 530 | 530 | ||
| 531 | By default, the return value is a list where the first element is a | 531 | By default, the return value is a list, whose contents depend on |
| 532 | list of column names, and the rest of the elements are the matching data. | 532 | the value of the optional argument RETURN-TYPE. |
| 533 | 533 | ||
| 534 | RETURN-TYPE can be either nil (which means that the matching data | 534 | If RETURN-TYPE is nil or omitted, the function returns a list of rows |
| 535 | should be returned as a list of rows), or `full' (the same, but the | 535 | matching QUERY. If RETURN-TYPE is `full', the function returns a |
| 536 | first element in the return list will be the column names), or `set', | 536 | list whose first element is the list of column names, and the rest |
| 537 | which means that we return a set object that can be queried with | 537 | of the elements are the rows matching QUERY. If RETURN-TYPE is `set', |
| 538 | `sqlite-next' and other functions to get the data. */) | 538 | the function returns a set object that can be queried with functions |
| 539 | like `sqlite-next' etc., in order to get the data. */) | ||
| 539 | (Lisp_Object db, Lisp_Object query, Lisp_Object values, | 540 | (Lisp_Object db, Lisp_Object query, Lisp_Object values, |
| 540 | Lisp_Object return_type) | 541 | Lisp_Object return_type) |
| 541 | { | 542 | { |