/ Check-in [fb60150a]
Login

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

Overview
Comment:Technical improvements to the documentation for sqlite3_bind_blob() and sqlite3_bind_text(). No changes to code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fb60150aeedc3898cb249c75c98a7cb48fcec090f94ded7896b634e436c7daa5
User & Date: drh 2019-03-14 00:01:23
Context
2019-03-15
16:17
Ensure that ALTER TABLE commands open statement transactions. Fix for [596d059a]. check-in: 0f2129f5 user: dan tags: trunk
2019-03-14
00:01
Technical improvements to the documentation for sqlite3_bind_blob() and sqlite3_bind_text(). No changes to code. check-in: fb60150a user: drh tags: trunk
2019-03-13
23:51
Improvements to the sqlite3_db_filename() API documentation. No code changes. check-in: 711f5ec4 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqlite.h.in.

  4041   4041   ** the value of the fourth parameter then the resulting string value will
  4042   4042   ** contain embedded NULs.  The result of expressions involving strings
  4043   4043   ** with embedded NULs is undefined.
  4044   4044   **
  4045   4045   ** ^The fifth argument to the BLOB and string binding interfaces
  4046   4046   ** is a destructor used to dispose of the BLOB or
  4047   4047   ** string after SQLite has finished with it.  ^The destructor is called
  4048         -** to dispose of the BLOB or string even if the call to bind API fails.
         4048  +** to dispose of the BLOB or string even if the call to the bind API fails,
         4049  +** except the destructor is not called if the third parameter is a NULL
         4050  +** pointer or the fourth parameter is negative.
  4049   4051   ** ^If the fifth argument is
  4050   4052   ** the special value [SQLITE_STATIC], then SQLite assumes that the
  4051   4053   ** information is in static, unmanaged space and does not need to be freed.
  4052   4054   ** ^If the fifth argument has the value [SQLITE_TRANSIENT], then
  4053   4055   ** SQLite makes its own private copy of the data immediately, before
  4054   4056   ** the sqlite3_bind_*() routine returns.
  4055   4057   **