diff options
author | dan <dan@noemail.net> | 2009-08-19 08:18:32 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2009-08-19 08:18:32 +0000 |
commit | 69188d9a66e32f7d24c0eb333d5999096029f99c (patch) | |
tree | 5596cbec9254af3832cb8b82e9ada683cde6a503 /src/utf.c | |
parent | e275dc3fb865fad483dad13a37a6b82314c698cb (diff) | |
download | sqlite-69188d9a66e32f7d24c0eb333d5999096029f99c.tar.gz sqlite-69188d9a66e32f7d24c0eb333d5999096029f99c.zip |
Add the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the stat2 table is not created, populated, or used.
FossilOrigin-Name: 362665e89c21fd603d9f8ad6c0ead590e885af7c
Diffstat (limited to 'src/utf.c')
-rw-r--r-- | src/utf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -464,6 +464,7 @@ char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte){ ** If a malloc failure occurs, NULL is returned and the db.mallocFailed ** flag set. */ +#ifdef SQLITE_ENABLE_STAT2 char *sqlite3Utf8to16(sqlite3 *db, int enc, char *z, int n, int *pnOut){ Mem m; memset(&m, 0, sizeof(m)); @@ -477,6 +478,7 @@ char *sqlite3Utf8to16(sqlite3 *db, int enc, char *z, int n, int *pnOut){ *pnOut = m.n; return m.z; } +#endif /* ** pZ is a UTF-16 encoded unicode string at least nChar characters long. |