/ Check-in [604b9664]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a typo in the header comment to the remember extension. No code changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:604b9664f4dd6e8d188b5c57407edbbe0639345f8d30bf2d19016f8324934840
User & Date: drh 2017-07-14 15:18:51
Context
2017-07-14
15:32
Update the Makefile for LSM1 so that the LSMOPTS can be set prior to including the Makefile, in order to add platform arguments such as -fPIC. check-in: fe319bcd user: drh tags: trunk
15:18
Fix a typo in the header comment to the remember extension. No code changes. check-in: 604b9664 user: drh tags: trunk
15:14
Change the name of the STMT virtual table to SQLITE_STMT. Also remove the first column of that virtual table, which was a pointer leak. check-in: 1bc4e934 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/remember.c.

    17     17   **
    18     18   ** This allows, for example, a counter to incremented and the original
    19     19   ** value retrieved, atomically, using a single statement:
    20     20   **
    21     21   **    UPDATE counterTab SET cnt=remember(cnt,$PTR)+1 WHERE id=$ID
    22     22   **
    23     23   ** Prepare the above statement once.  Then to use it, bind the address
    24         -** of the output variable to $PTR (using sqlite3_binary_pointer()) and
           24  +** of the output variable to $PTR (using sqlite3_bind_pointer()) and
    25     25   ** bind the id of the counter to $ID and run the prepared statement.
    26     26   **
    27     27   ** One can imagine doing similar things with floating-point values and
    28     28   ** strings, but this demonstration extension will stick to using just
    29     29   ** integers.
    30     30   */
    31     31   #include "sqlite3ext.h"