From: drh Date: Tue, 12 May 2015 13:32:55 +0000 (+0000) Subject: Improvements to documentation of the sqlite3_column_xxxxx() interfaces. X-Git-Tag: version-3.8.11~267 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d213d31e5469cc4697e2951d87c8901cc58546e;p=thirdparty%2Fsqlite.git Improvements to documentation of the sqlite3_column_xxxxx() interfaces. No code changes. FossilOrigin-Name: f1aa951a337037c18ee14e114e36314835e05926 --- diff --git a/manifest b/manifest index 37a9d141f9..3211b521b7 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Try\sto\sget\srecent\ssqlite3_analyzer\sand\ssqldiff\stests\sworking\sfor\sall\ntested\scombinations\sof\scompile-time\soptions,\sespecially\nSQLITE_OMIT_VIRTUALTABLE\sand\sSQLITE_OMIT_LOAD_EXTENSION. -D 2015-05-12T12:24:50.764 +C Improvements\sto\sdocumentation\sof\sthe\ssqlite3_column_xxxxx()\sinterfaces.\nNo\scode\schanges. +D 2015-05-12T13:32:55.686 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in edfc69769e613a6359c42c06ea1d42c3bece1736 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -233,7 +233,7 @@ F src/resolve.c 99eabf7eff0bfa65b75939b46caa82e2b2133f28 F src/rowset.c eccf6af6d620aaa4579bd3b72c1b6395d9e9fa1e F src/select.c 1b0bfc7d59e48c26b895a6b719157111a617d9e3 F src/shell.c 07dda7cd692911d2f22269953418d049f2e2c0ee -F src/sqlite.h.in ca27603a36fcacdaac5a19d8ee35aaff8ce8516f +F src/sqlite.h.in bf3fe5eba3a5142477b8dae3cfce627c3e971455 F src/sqlite3.rc 992c9f5fb8285ae285d6be28240a7e8d3a7f2bad F src/sqlite3ext.h 17d487c3c91b0b8c584a32fbeb393f6f795eea7d F src/sqliteInt.h c9f77bd02f419dcc8c644c5032c42eb29069a545 @@ -1258,7 +1258,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f -P c223910e726131d7b718b556c83df5faa723369d -R e55107543f272121344d208983268384 +P 07c7d3925cbcf44c2f606c7f016ec56304e0ca24 +R 232891624456fc55311da5c18d427088 U drh -Z ab32b0f5550e44730f2f58e837fbdfe9 +Z 86dda33358ab407f165215b386fe79a0 diff --git a/manifest.uuid b/manifest.uuid index 18283766c5..21e4d8b00e 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -07c7d3925cbcf44c2f606c7f016ec56304e0ca24 \ No newline at end of file +f1aa951a337037c18ee14e114e36314835e05926 \ No newline at end of file diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 163bc69fe7..4a66626b8f 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -3893,8 +3893,6 @@ int sqlite3_data_count(sqlite3_stmt *pStmt); ** KEYWORDS: {column access functions} ** METHOD: sqlite3_stmt ** -** These routines form the "result set" interface. -** ** ^These routines return information about a single column of the current ** result row of a query. ^In every case the first argument is a pointer ** to the [prepared statement] that is being evaluated (the [sqlite3_stmt*] @@ -3954,13 +3952,14 @@ int sqlite3_data_count(sqlite3_stmt *pStmt); ** even empty strings, are always zero-terminated. ^The return ** value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer. ** -** ^The object returned by [sqlite3_column_value()] is an -** [unprotected sqlite3_value] object. An unprotected sqlite3_value object -** may only be used with [sqlite3_bind_value()] and [sqlite3_result_value()]. +** Warning: ^The object returned by [sqlite3_column_value()] is an +** [unprotected sqlite3_value] object. In a multithreaded environment, +** an unprotected sqlite3_value object may only be used safely with +** [sqlite3_bind_value()] and [sqlite3_result_value()]. ** If the [unprotected sqlite3_value] object returned by ** [sqlite3_column_value()] is used in any other way, including calls ** to routines like [sqlite3_value_int()], [sqlite3_value_text()], -** or [sqlite3_value_bytes()], then the behavior is undefined. +** or [sqlite3_value_bytes()], the behavior is not threadsafe. ** ** These routines attempt to convert the value where appropriate. ^For ** example, if the internal representation is FLOAT and a text result @@ -3991,12 +3990,6 @@ int sqlite3_data_count(sqlite3_stmt *pStmt); ** ** )^ ** -** The table above makes reference to standard C library functions atoi() -** and atof(). SQLite does not really use these functions. It has its -** own equivalent internal routines. The atoi() and atof() names are -** used in the table for brevity and because they are familiar to most -** C programmers. -** ** Note that when type conversions occur, pointers returned by prior ** calls to sqlite3_column_blob(), sqlite3_column_text(), and/or ** sqlite3_column_text16() may be invalidated. @@ -4021,7 +4014,7 @@ int sqlite3_data_count(sqlite3_stmt *pStmt); ** of conversion are done in place when it is possible, but sometimes they ** are not possible and in those cases prior pointers are invalidated. ** -** The safest and easiest to remember policy is to invoke these routines +** The safest policy is to invoke these routines ** in one of the following ways: ** **