diff options
author | drh <drh@noemail.net> | 2020-01-17 21:12:22 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-01-17 21:12:22 +0000 |
commit | 929a9406785cc0a5cdea6a4943e89bd84474efa1 (patch) | |
tree | ab2c07799058e74f78667de122f68e0bca5f4ebe /ext/misc/compress.c | |
parent | ef9f719d0b2dfe76284be2a87e54b2ada07e3f0a (diff) | |
download | sqlite-929a9406785cc0a5cdea6a4943e89bd84474efa1.tar.gz sqlite-929a9406785cc0a5cdea6a4943e89bd84474efa1.zip |
The compress() function should not be deterministic since the same input can
have multiple possible compressed outputs. The uncompress() function, on the
other hand, is deterministic.
FossilOrigin-Name: 84f314902c48336849081c7e9fe2a52caf171b8215a1c6e80cded0700c447eb1
Diffstat (limited to 'ext/misc/compress.c')
-rw-r--r-- | ext/misc/compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/compress.c b/ext/misc/compress.c index ab9f5de69..2e7a31636 100644 --- a/ext/misc/compress.c +++ b/ext/misc/compress.c @@ -120,7 +120,7 @@ int sqlite3_compress_init( SQLITE_EXTENSION_INIT2(pApi); (void)pzErrMsg; /* Unused parameter */ rc = sqlite3_create_function(db, "compress", 1, - SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC, + SQLITE_UTF8 | SQLITE_INNOCUOUS, 0, compressFunc, 0, 0); if( rc==SQLITE_OK ){ rc = sqlite3_create_function(db, "uncompress", 1, |