From: drh Date: Fri, 25 Nov 2016 20:20:40 +0000 (+0000) Subject: Clarification of the behavior of sqlite3_stmt_readonly() on BEGIN IMMEDIATE X-Git-Tag: version-3.16.0~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6412a4c8a59294a00e5be5e85057ad6473d407eb;p=thirdparty%2Fsqlite.git Clarification of the behavior of sqlite3_stmt_readonly() on BEGIN IMMEDIATE statements. The is comment changes only - no changes to code. FossilOrigin-Name: a4205a83e4ed977a89ecae665604993711f7dd3f --- diff --git a/manifest b/manifest index f2e0359e9f..d95479008e 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Remove\sthe\sOP_RowKey\sopcode.\s\sUse\sOP_RowData\sin\sits\splace. -D 2016-11-25T19:32:32.783 +C Clarification\sof\sthe\sbehavior\sof\ssqlite3_stmt_readonly()\son\sBEGIN\sIMMEDIATE\nstatements.\s\sThe\sis\scomment\schanges\sonly\s-\sno\schanges\sto\scode. +D 2016-11-25T20:20:40.663 F Makefile.in 6b572807415d3f0a379cebc9461416d8df4a12c8 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc bb4d970894abbbe0e88d00aac29bd52af8bc95f4 @@ -389,7 +389,7 @@ F src/resolve.c bb070cf5f23611c44ab7e4788803684e385fc3fb F src/rowset.c 7b7e7e479212e65b723bf40128c7b36dc5afdfac F src/select.c 668c6865b16813dab5f9c18d3672fed11a5c34c5 F src/shell.c a3fc2c719ed6d381895cbdb66a4a9b6a791cb02e -F src/sqlite.h.in 803f7050f69b2eea573fac219f3c92582c096027 +F src/sqlite.h.in e30a501ccb8c8bd25b6559c65ba240c6370802ae F src/sqlite3.rc 5121c9e10c3964d5755191c80dd1180c122fc3a8 F src/sqlite3ext.h 8648034aa702469afb553231677306cc6492a1ae F src/sqliteInt.h c471d791b10c0f2164c8b7a87adc338e703c09cc @@ -1534,7 +1534,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P 49ebc219faea30eaa61def4a3fba2817b9c58a86 -R bc9bbb95d3f8cdb1915e65f8ff0e8ded +P 6ac7b07a4aff2e1a9031289e3dafdb9ac0071c24 +R 32f39fc3fb2e8643f8b6bcf49fda406b U drh -Z ad1418d236344734ff49bed1db4111ac +Z be231616b2371336e459be64a91b2f84 diff --git a/manifest.uuid b/manifest.uuid index 85438c23d4..b87bf72629 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -6ac7b07a4aff2e1a9031289e3dafdb9ac0071c24 \ No newline at end of file +a4205a83e4ed977a89ecae665604993711f7dd3f \ No newline at end of file diff --git a/src/sqlite.h.in b/src/sqlite.h.in index dd70407c1b..578a9066e1 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -3610,6 +3610,10 @@ char *sqlite3_expanded_sql(sqlite3_stmt *pStmt); ** sqlite3_stmt_readonly() to return true since, while those statements ** change the configuration of a database connection, they do not make ** changes to the content of the database files on disk. +** ^The sqlite3_stmt_readonly() interface returns true for [BEGIN] since +** [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and +** [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so +** sqlite3_stmt_readonly() returns false for those commands. */ int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);