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

The command-line shell ignore errors in sqlite3_close() when shutting down.

FossilOrigin-Name: 925332c3d79f6252895ff1a367f795630619247e
This commit is contained in:
drh
2010-12-08 03:28:17 +00:00
parent 81d7fd13e4
commit e14cd93f2e
3 changed files with 11 additions and 15 deletions

View File

@@ -2727,11 +2727,7 @@ int main(int argc, char **argv){
}
set_table_name(&data, 0);
if( data.db ){
if( sqlite3_close(data.db)!=SQLITE_OK ){
fprintf(stderr,"Error: cannot close database \"%s\"\n",
sqlite3_errmsg(db));
rc++;
}
sqlite3_close(data.db);
}
return rc;
}