Documentation Source Text

Check-in [8d2c7aa89d]
Login

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

Overview
Comment:Fix another typo in the bindptr.html document.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d2c7aa89d5cf1531c68de687276cc4369415738203bf6eec2de55efaa276db9
User & Date: drh 2017-08-03 15:47:14
Context
2017-08-07
01:43
Fix the hyperlinks to the subsequent pages on the search results page. check-in: ffe3fc4ac0 user: drh tags: branch-3.20
2017-08-03
20:39
Begin a change log entry for the 3.21.0 release. check-in: 4cadcc5b9c user: drh tags: trunk
15:47
Fix another typo in the bindptr.html document. check-in: 8d2c7aa89d user: drh tags: trunk
14:35
Amplify one of the points justifying static string pointer types. check-in: 6604546bb4 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pages/bindptr.in.

362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
pointer is being transferred to SQLite.  SQLite will take responsibility
for freeing resources associated with the pointer when it has finished
using the pointer.  If the D parameter is NULL, that means that ownership
of the pointer remains with the caller and the caller is responsible for
disposing of the pointer.

<p>
Note that the destructure function D is for the pointer value P, not for
the type string T.  The type string T should be a static string with an
infinite lifetime.

<p>
If ownership of the pointer is passed into SQLite by providing a
non-NULL D parameter to [sqlite3_bind_pointer()] or [sqlite3_result_pointer()]
then the ownership remains with SQLite until the object is destroyed.







|







362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
pointer is being transferred to SQLite.  SQLite will take responsibility
for freeing resources associated with the pointer when it has finished
using the pointer.  If the D parameter is NULL, that means that ownership
of the pointer remains with the caller and the caller is responsible for
disposing of the pointer.

<p>
Note that the destructor function D is for the pointer value P, not for
the type string T.  The type string T should be a static string with an
infinite lifetime.

<p>
If ownership of the pointer is passed into SQLite by providing a
non-NULL D parameter to [sqlite3_bind_pointer()] or [sqlite3_result_pointer()]
then the ownership remains with SQLite until the object is destroyed.