diff options
author | drh <drh@noemail.net> | 2016-07-15 02:50:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-07-15 02:50:18 +0000 |
commit | eb5a549ecfb1fb67c66b1061f5db95bae46f4c47 (patch) | |
tree | 2d285d74ca251cacbf42fd3a9f3cd9188771293e /ext/misc/csv.c | |
parent | 86396219a31261a0cc1a69a6cded57073040661d (diff) | |
download | sqlite-eb5a549ecfb1fb67c66b1061f5db95bae46f4c47.tar.gz sqlite-eb5a549ecfb1fb67c66b1061f5db95bae46f4c47.zip |
Disable the CSV extension when virtual tables are disabled.
FossilOrigin-Name: ec7180892ac737f0731cf61f2d095a5c1d18ad93
Diffstat (limited to 'ext/misc/csv.c')
-rw-r--r-- | ext/misc/csv.c | 7 |
1 files changed, 7 insertions, 0 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 } |