aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-07-23 15:51:29 +0000
committerdrh <drh@noemail.net>2014-07-23 15:51:29 +0000
commit11d451eb8a8b01610106b0792be64cfad5b85a45 (patch)
tree26dfd07bc7fbca5b97ac4e74fde36a492c44a472 /src
parent0f65cce82580619ba3498e3b2ef7bd338d73b6e5 (diff)
downloadsqlite-11d451eb8a8b01610106b0792be64cfad5b85a45.tar.gz
sqlite-11d451eb8a8b01610106b0792be64cfad5b85a45.zip
Updated documentation on sqlite3_temp_directory. No changes to code.
FossilOrigin-Name: e6225a7bf77a700b318563b1a854b4b3a9e031e1
Diffstat (limited to 'src')
-rw-r--r--src/sqlite.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index 93cde7834..67113dc41 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -4711,6 +4711,13 @@ int sqlite3_sleep(int);
** is a NULL pointer, then SQLite performs a search for an appropriate
** temporary file directory.
**
+** Applications are strongly discouraged from using this global variable.
+** It is required to set a temporary folder on Windows Runtime (WinRT).
+** But for all other platforms, it is highly recommended that applications
+** neither read nor write this variable. This global variable is a relic
+** that exists for backwards compatibility of legacy applications and should
+** be avoided in new projects.
+**
** It is not safe to read or modify this variable in more than one
** thread at a time. It is not safe to read or modify this variable
** if a [database connection] is being used at the same time in a separate
@@ -4729,6 +4736,11 @@ int sqlite3_sleep(int);
** Hence, if this variable is modified directly, either it should be
** made NULL or made to point to memory obtained from [sqlite3_malloc]
** or else the use of the [temp_store_directory pragma] should be avoided.
+** Except when requested by the [temp_store_directory pragma], SQLite
+** does not free the memory that sqlite3_temp_directory points to. If
+** the application wants that memory to be freed, it must do
+** so itself, taking care to only do so after all [database connection]
+** objects have been destroyed.
**
** <b>Note to Windows Runtime users:</b> The temporary directory must be set
** prior to calling [sqlite3_open] or [sqlite3_open_v2]. Otherwise, various