mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Ensure temporary files are deleted when they are closed. (CVS 4277)
FossilOrigin-Name: cf4e3c158aa71afc91f263a314c2e750d191fb41
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.369 2007/08/23 11:07:10 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.370 2007/08/23 11:47:59 danielk1977 Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -1798,7 +1798,10 @@ static int sqlite3PagerOpentemp(
|
||||
){
|
||||
int cnt = 8;
|
||||
int rc;
|
||||
int flags = (SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE|SQLITE_OPEN_EXCLUSIVE);
|
||||
int flags = (
|
||||
SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE|
|
||||
SQLITE_OPEN_EXCLUSIVE|SQLITE_OPEN_DELETEONCLOSE
|
||||
);
|
||||
|
||||
char *zFree = 0;
|
||||
if( zNameOut==0 ){
|
||||
|
Reference in New Issue
Block a user