aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-07-15 02:50:18 +0000
committerdrh <drh@noemail.net>2016-07-15 02:50:18 +0000
commiteb5a549ecfb1fb67c66b1061f5db95bae46f4c47 (patch)
tree2d285d74ca251cacbf42fd3a9f3cd9188771293e
parent86396219a31261a0cc1a69a6cded57073040661d (diff)
downloadsqlite-eb5a549ecfb1fb67c66b1061f5db95bae46f4c47.tar.gz
sqlite-eb5a549ecfb1fb67c66b1061f5db95bae46f4c47.zip
Disable the CSV extension when virtual tables are disabled.
FossilOrigin-Name: ec7180892ac737f0731cf61f2d095a5c1d18ad93
-rw-r--r--ext/misc/csv.c7
-rw-r--r--manifest12
-rw-r--r--manifest.uuid2
3 files changed, 14 insertions, 7 deletions
diff --git a/ext/misc/csv.c b/ext/misc/csv.c
index 3a7e32d31..a055a8df1 100644
--- a/ext/misc/csv.c
+++ b/ext/misc/csv.c
@@ -48,6 +48,8 @@ SQLITE_EXTENSION_INIT1
#include <ctype.h>
#include <stdio.h>
+#ifndef SQLITE_OMIT_VIRTUALTABLE
+
/*
** A macro to hint to the compiler that a function should not be
** inlined.
@@ -834,6 +836,7 @@ static sqlite3_module CsvModuleFauxWrite = {
};
#endif /* SQLITE_TEST */
+#endif /* !defined(SQLITE_OMIT_VIRTUALTABLE) */
#ifdef _WIN32
@@ -849,6 +852,7 @@ int sqlite3_csv_init(
char **pzErrMsg,
const sqlite3_api_routines *pApi
){
+#ifndef SQLITE_OMIT_VIRTUALTABLE
int rc;
SQLITE_EXTENSION_INIT2(pApi);
rc = sqlite3_create_module(db, "csv", &CsvModule, 0);
@@ -858,4 +862,7 @@ int sqlite3_csv_init(
}
#endif
return rc;
+#else
+ return SQLITE_OK;
+#endif
}
diff --git a/manifest b/manifest
index 966b26fc0..3e9a346ef 100644
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sALTER\sTABLE\sso\sthat\sit\sdoes\snot\spromote\sthe\sschema\sversion\spast\s3,\sas\nthat\swill\scause\sDESC\sindexes\sto\sgo\scorrupt.\nTicket\s[f68bf68513a1c].
-D 2016-07-14T19:13:11.812
+C Disable\sthe\sCSV\sextension\swhen\svirtual\stables\sare\sdisabled.
+D 2016-07-15T02:50:18.913
F Makefile.in 6c20d44f72d4564f11652b26291a214c8367e5db
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
F Makefile.msc d66d0395c38571aab3804f8db0fa20707ae4609a
@@ -207,7 +207,7 @@ F ext/misc/amatch.c 211108e201105e4bb0c076527b8cfd34330fc234
F ext/misc/carray.c 214c9e9d909ceaae3b2f5f917cc2204deca85cc6
F ext/misc/closure.c 0d2a038df8fbae7f19de42e7c7d71f2e4dc88704
F ext/misc/compress.c 122faa92d25033d6c3f07c39231de074ab3d2e83
-F ext/misc/csv.c b92692b057707f5b7bb91feaedde790b2e38304e
+F ext/misc/csv.c f51b0566ea15e24cce871037e30a4db99ea6cf77
F ext/misc/eval.c f971962e92ebb8b0a4e6b62949463ee454d88fa2
F ext/misc/fileio.c d4171c815d6543a9edef8308aab2951413cd8d0f
F ext/misc/fuzzer.c 7c64b8197bb77b7d64eff7cac7848870235d4c25
@@ -1505,7 +1505,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 824b39e54fb9ba562be4d92cc9a54aee1cdf84cb
-R 7d842c7254944c448483c1d7ddff9ad6
+P a7db6e45ad45be9b3003f61d4163f543498a7c9d
+R ec00a189cb07c46ebd136f03f1e34d37
U drh
-Z f6a6c237e43006b812e6af2a3e69c586
+Z 4982072efce5132597470baa33eb57d2
diff --git a/manifest.uuid b/manifest.uuid
index 1fc14b81a..3747973d8 100644
--- a/manifest.uuid
+++ b/manifest.uuid
@@ -1 +1 @@
-a7db6e45ad45be9b3003f61d4163f543498a7c9d \ No newline at end of file
+ec7180892ac737f0731cf61f2d095a5c1d18ad93 \ No newline at end of file