diff options
author | drh <drh@noemail.net> | 2008-04-14 01:00:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-04-14 01:00:57 +0000 |
commit | c5d0bd907b97017c255164bb47e97b224c131f8c (patch) | |
tree | d7ede24331cf247f0f45326f213ed62e93def0b0 /src/test_config.c | |
parent | ede262769506c3dbdf67f8c72576d9ee238accc2 (diff) | |
download | sqlite-c5d0bd907b97017c255164bb47e97b224c131f8c.tar.gz sqlite-c5d0bd907b97017c255164bb47e97b224c131f8c.zip |
Get the SQLITE_SECURE_DELETE compile-time option working again.
Ticket #3050. (CVS 4999)
FossilOrigin-Name: 40ba51fd4c621e29e7ff85495b1212c92f06ab31
Diffstat (limited to 'src/test_config.c')
-rw-r--r-- | src/test_config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test_config.c b/src/test_config.c index 1045dcda5..a82f5af11 100644 --- a/src/test_config.c +++ b/src/test_config.c @@ -16,7 +16,7 @@ ** The focus of this file is providing the TCL testing layer ** access to compile-time constants. ** -** $Id: test_config.c,v 1.24 2008/03/22 01:07:18 drh Exp $ +** $Id: test_config.c,v 1.25 2008/04/14 01:00:58 drh Exp $ */ #include "sqliteLimit.h" @@ -419,6 +419,12 @@ Tcl_SetVar2(interp, "sqlite_options", "long_double", Tcl_SetVar2(interp, "sqlite_options", "vtab", "1", TCL_GLOBAL_ONLY); #endif +#ifdef SQLITE_SECURE_DELETE + Tcl_SetVar2(interp, "sqlite_options", "secure_delete", "1", TCL_GLOBAL_ONLY); +#else + Tcl_SetVar2(interp, "sqlite_options", "secure_delete", "0", TCL_GLOBAL_ONLY); +#endif + #define LINKVAR(x) { \ static const int cv_ ## x = SQLITE_ ## x; \ Tcl_LinkVar(interp, "SQLITE_" #x, (char *)&(cv_ ## x), \ |