aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/compress.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-01-07 19:45:40 +0000
committerdrh <drh@noemail.net>2020-01-07 19:45:40 +0000
commit2b1c2aad9f45a21e04d3420152779386b6cf7d33 (patch)
tree1a1df932219cf9ffcc8aafd31aed443f0b661b47 /ext/misc/compress.c
parent3f68142b820d10f3b0b4b9df65e789f4058eb67d (diff)
downloadsqlite-2b1c2aad9f45a21e04d3420152779386b6cf7d33.tar.gz
sqlite-2b1c2aad9f45a21e04d3420152779386b6cf7d33.zip
Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to set
the risk rank for many virtual tables. FossilOrigin-Name: 4c21373c21c9b17b222ae65297a039a035e6ec6b505c00c33704e3c03f94f834
Diffstat (limited to 'ext/misc/compress.c')
-rw-r--r--ext/misc/compress.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/misc/compress.c b/ext/misc/compress.c
index 6e7d8b614..ab9f5de69 100644
--- a/ext/misc/compress.c
+++ b/ext/misc/compress.c
@@ -119,11 +119,13 @@ int sqlite3_compress_init(
int rc = SQLITE_OK;
SQLITE_EXTENSION_INIT2(pApi);
(void)pzErrMsg; /* Unused parameter */
- rc = sqlite3_create_function(db, "compress", 1, SQLITE_UTF8, 0,
- compressFunc, 0, 0);
+ rc = sqlite3_create_function(db, "compress", 1,
+ SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC,
+ 0, compressFunc, 0, 0);
if( rc==SQLITE_OK ){
- rc = sqlite3_create_function(db, "uncompress", 1, SQLITE_UTF8, 0,
- uncompressFunc, 0, 0);
+ rc = sqlite3_create_function(db, "uncompress", 1,
+ SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC,
+ 0, uncompressFunc, 0, 0);
}
return rc;
}