aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2005-05-24 12:01:00 +0000
committerdanielk1977 <danielk1977@noemail.net>2005-05-24 12:01:00 +0000
commitfd9a0a45a70bb1f47a48c2d73abc2461d000dbcd (patch)
tree64d3777f6418e0ad2ab9501c038151b96465d8da /src/main.c
parentb71090fdfb8600dcf5fa386e21544eb294b081f4 (diff)
downloadsqlite-fd9a0a45a70bb1f47a48c2d73abc2461d000dbcd.tar.gz
sqlite-fd9a0a45a70bb1f47a48c2d73abc2461d000dbcd.zip
Move a few things around to make building without the parser easier. (CVS 2479)
FossilOrigin-Name: 5fadb464eb77b4b998d8555f83401769960ea904
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c5c7f4a5b..381310195 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.288 2005/05/23 04:51:02 danielk1977 Exp $
+** $Id: main.c,v 1.289 2005/05/24 12:01:02 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -47,6 +47,19 @@ static void corruptSchema(InitData *pData, const char *zExtra){
}
}
+#ifndef SQLITE_OMIT_UTF16
+/*
+** Return the transient sqlite3_value object used for encoding conversions
+** during SQL compilation.
+*/
+sqlite3_value *sqlite3GetTransientValue(sqlite3 *db){
+ if( !db->pValue ){
+ db->pValue = sqlite3ValueNew();
+ }
+ return db->pValue;
+}
+#endif
+
/*
** This is the callback routine for the code that initializes the
** database. See sqlite3Init() below for additional information.