/ Check-in [a4205a83]
Login

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

Overview
Comment:Clarification of the behavior of sqlite3_stmt_readonly() on BEGIN IMMEDIATE statements. The is comment changes only - no changes to code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a4205a83e4ed977a89ecae665604993711f7dd3f
User & Date: drh 2016-11-25 20:20:40
Context
2016-11-26
19:44
Add the sqlite3_snapshot_recover() interface and related functionality. check-in: b70c85ce user: drh tags: trunk
2016-11-25
20:20
Clarification of the behavior of sqlite3_stmt_readonly() on BEGIN IMMEDIATE statements. The is comment changes only - no changes to code. check-in: a4205a83 user: drh tags: trunk
19:32
Remove the OP_RowKey opcode. Use OP_RowData in its place. check-in: 6ac7b07a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqlite.h.in.

  3606   3606   ** [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true,
  3607   3607   ** since the statements themselves do not actually modify the database but
  3608   3608   ** rather they control the timing of when other statements modify the 
  3609   3609   ** database.  ^The [ATTACH] and [DETACH] statements also cause
  3610   3610   ** sqlite3_stmt_readonly() to return true since, while those statements
  3611   3611   ** change the configuration of a database connection, they do not make 
  3612   3612   ** changes to the content of the database files on disk.
         3613  +** ^The sqlite3_stmt_readonly() interface returns true for [BEGIN] since
         3614  +** [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and
         3615  +** [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so
         3616  +** sqlite3_stmt_readonly() returns false for those commands.
  3613   3617   */
  3614   3618   int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);
  3615   3619   
  3616   3620   /*
  3617   3621   ** CAPI3REF: Determine If A Prepared Statement Has Been Reset
  3618   3622   ** METHOD: sqlite3_stmt
  3619   3623   **