/ Check-in [925332c3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The command-line shell ignore errors in sqlite3_close() when shutting down.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 925332c3d79f6252895ff1a367f795630619247e
User & Date: drh 2010-12-08 03:28:17
Context
2010-12-08
18:30
Update the sqlite3_stmt_readonly() interface so that its output is well-defined for all prepared statements, and so that it gives the correct result for VACUUM. check-in: 9c19b7ae user: drh tags: trunk
03:28
The command-line shell ignore errors in sqlite3_close() when shutting down. check-in: 925332c3 user: drh tags: trunk
00:02
Changes to the shell which should, in theory, allow it to work with libeditline as an alternative to libreadline. check-in: e474fd9e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  2723   2723         free(zHome);
  2724   2724       }else{
  2725   2725         rc = process_input(&data, stdin);
  2726   2726       }
  2727   2727     }
  2728   2728     set_table_name(&data, 0);
  2729   2729     if( data.db ){
  2730         -    if( sqlite3_close(data.db)!=SQLITE_OK ){
  2731         -      fprintf(stderr,"Error: cannot close database \"%s\"\n",
  2732         -              sqlite3_errmsg(db));
  2733         -      rc++;
  2734         -    }
         2730  +    sqlite3_close(data.db);
  2735   2731     }
  2736   2732     return rc;
  2737   2733   }