aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-06-26 10:54:12 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-06-26 10:54:12 +0000
commitb06a0b67c45d8ffb2efe549ae07d47c3c4a3723f (patch)
tree2cbd392178588b7c3f36117c441cb968053390ef /src
parent29bafeabcdfd107d56ae4659e5905cf0c61c79ee (diff)
downloadsqlite-b06a0b67c45d8ffb2efe549ae07d47c3c4a3723f.tar.gz
sqlite-b06a0b67c45d8ffb2efe549ae07d47c3c4a3723f.zip
Change the TEMP_STORE preprocessor symbol to SQLITE_TEMP_STORE. (CVS 5312)
FossilOrigin-Name: 1e3b8308021107d983d2152663f62b369cca091d
Diffstat (limited to 'src')
-rw-r--r--src/main.c32
-rw-r--r--src/pragma.c10
-rw-r--r--src/sqliteInt.h8
-rw-r--r--src/test_config.c4
-rw-r--r--src/test_onefile.c6
5 files changed, 30 insertions, 30 deletions
diff --git a/src/main.c b/src/main.c
index 50d933a5d..3b49d9d12 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
-** $Id: main.c,v 1.464 2008/06/26 10:41:19 danielk1977 Exp $
+** $Id: main.c,v 1.465 2008/06/26 10:54:12 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -919,19 +919,19 @@ void *sqlite3_rollback_hook(
**
** A virtual database can be either a disk file (that is automatically
** deleted when the file is closed) or it an be held entirely in memory,
-** depending on the values of the TEMP_STORE compile-time macro and the
+** depending on the values of the SQLITE_TEMP_STORE compile-time macro and the
** db->temp_store variable, according to the following chart:
**
-** TEMP_STORE db->temp_store Location of temporary database
-** ---------- -------------- ------------------------------
-** 0 any file
-** 1 1 file
-** 1 2 memory
-** 1 0 file
-** 2 1 file
-** 2 2 memory
-** 2 0 memory
-** 3 any memory
+** SQLITE_TEMP_STORE db->temp_store Location of temporary database
+** ----------------- -------------- ------------------------------
+** 0 any file
+** 1 1 file
+** 1 2 memory
+** 1 0 file
+** 2 1 file
+** 2 2 memory
+** 2 0 memory
+** 3 any memory
*/
int sqlite3BtreeFactory(
const sqlite3 *db, /* Main database when opening aux otherwise 0 */
@@ -953,17 +953,17 @@ int sqlite3BtreeFactory(
btFlags |= BTREE_NO_READLOCK;
}
if( zFilename==0 ){
-#if TEMP_STORE==0
+#if SQLITE_TEMP_STORE==0
/* Do nothing */
#endif
#ifndef SQLITE_OMIT_MEMORYDB
-#if TEMP_STORE==1
+#if SQLITE_TEMP_STORE==1
if( db->temp_store==2 ) zFilename = ":memory:";
#endif
-#if TEMP_STORE==2
+#if SQLITE_TEMP_STORE==2
if( db->temp_store!=1 ) zFilename = ":memory:";
#endif
-#if TEMP_STORE==3
+#if SQLITE_TEMP_STORE==3
zFilename = ":memory:";
#endif
#endif /* SQLITE_OMIT_MEMORYDB */
diff --git a/src/pragma.c b/src/pragma.c
index c4c070943..79a9d89c3 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the PRAGMA command.
**
-** $Id: pragma.c,v 1.180 2008/06/22 12:37:58 drh Exp $
+** $Id: pragma.c,v 1.181 2008/06/26 10:54:12 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -127,7 +127,7 @@ static int invalidateTempStorage(Parse *pParse){
#ifndef SQLITE_OMIT_PAGER_PRAGMAS
/*
** If the TEMP database is open, close it and mark the database schema
-** as needing reloading. This must be done when using the TEMP_STORE
+** as needing reloading. This must be done when using the SQLITE_TEMP_STORE
** or DEFAULT_TEMP_STORE pragmas.
*/
static int changeTempStorage(Parse *pParse, const char *zStorageType){
@@ -674,9 +674,9 @@ void sqlite3Pragma(
goto pragma_out;
}
}
- if( TEMP_STORE==0
- || (TEMP_STORE==1 && db->temp_store<=1)
- || (TEMP_STORE==2 && db->temp_store==1)
+ if( SQLITE_TEMP_STORE==0
+ || (SQLITE_TEMP_STORE==1 && db->temp_store<=1)
+ || (SQLITE_TEMP_STORE==2 && db->temp_store==1)
){
invalidateTempStorage(pParse);
}
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 942396a6f..7757f6915 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
-** @(#) $Id: sqliteInt.h,v 1.730 2008/06/26 08:29:34 danielk1977 Exp $
+** @(#) $Id: sqliteInt.h,v 1.731 2008/06/26 10:54:12 danielk1977 Exp $
*/
#ifndef _SQLITEINT_H_
#define _SQLITEINT_H_
@@ -249,11 +249,11 @@
#endif
/*
-** Provide a default value for TEMP_STORE in case it is not specified
+** Provide a default value for SQLITE_TEMP_STORE in case it is not specified
** on the command-line
*/
-#ifndef TEMP_STORE
-# define TEMP_STORE 1
+#ifndef SQLITE_TEMP_STORE
+# define SQLITE_TEMP_STORE 1
#endif
/*
diff --git a/src/test_config.c b/src/test_config.c
index 76a921fda..35ca0c188 100644
--- a/src/test_config.c
+++ b/src/test_config.c
@@ -16,7 +16,7 @@
** The focus of this file is providing the TCL testing layer
** access to compile-time constants.
**
-** $Id: test_config.c,v 1.29 2008/06/26 10:41:19 danielk1977 Exp $
+** $Id: test_config.c,v 1.30 2008/06/26 10:54:12 danielk1977 Exp $
*/
#include "sqliteLimit.h"
@@ -460,7 +460,7 @@ Tcl_SetVar2(interp, "sqlite_options", "long_double",
LINKVAR( MAX_ATTACHED );
{
- static const int cv_TEMP_STORE = TEMP_STORE;
+ static const int cv_TEMP_STORE = SQLITE_TEMP_STORE;
Tcl_LinkVar(interp, "TEMP_STORE", (char *)&(cv_TEMP_STORE),
TCL_LINK_INT | TCL_LINK_READ_ONLY);
}
diff --git a/src/test_onefile.c b/src/test_onefile.c
index f93192278..c8cc43c80 100644
--- a/src/test_onefile.c
+++ b/src/test_onefile.c
@@ -10,7 +10,7 @@
**
*************************************************************************
**
-** $Id: test_onefile.c,v 1.8 2008/06/06 11:11:26 danielk1977 Exp $
+** $Id: test_onefile.c,v 1.9 2008/06/26 10:54:12 danielk1977 Exp $
**
** OVERVIEW:
**
@@ -28,8 +28,8 @@
** from sqlite3_malloc(). Any attempt to create a temporary database file
** will fail (SQLITE_IOERR). To prevent SQLite from attempting this,
** it should be configured to store all temporary database files in
-** main memory (see pragma "temp_store" or the TEMP_STORE compile time
-** option).
+** main memory (see pragma "temp_store" or the SQLITE_TEMP_STORE compile
+** time option).
**
** ASSUMPTIONS:
**