1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Remove duplicate secure_delete pragma implemention.

FossilOrigin-Name: c15fda145b621fc86402914aa5b015e53590555a
This commit is contained in:
drh
2010-04-12 19:31:59 +00:00
parent 6700d02cce
commit 63ca1dba52
3 changed files with 18 additions and 33 deletions

View File

@@ -445,31 +445,6 @@ void sqlite3Pragma(
returnSingleInt(pParse, "secure_delete", b);
}else
/*
** PRAGMA [database.]secure_delete
** PRAGMA [database.]secure_delete=ON/OFF
**
** The first form reports the current setting for the
** secure_delete flag. The second form changes the secure_delete
** flag setting and reports thenew value.
*/
if( sqlite3StrICmp(zLeft,"secure_delete")==0 ){
Btree *pBt = pDb->pBt;
int b = -1;
assert( pBt!=0 );
if( zRight ){
b = getBoolean(zRight);
}
if( pId2->n==0 && b>=0 ){
int ii;
for(ii=0; ii<db->nDb; ii++){
sqlite3BtreeSecureDelete(db->aDb[ii].pBt, b);
}
}
b = sqlite3BtreeSecureDelete(pBt, b);
returnSingleInt(pParse, "secure_delete", b);
}else
/*
** PRAGMA [database.]page_count
**