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

Make sure the database connection is open prior to running the ".sha3sum"

command.

FossilOrigin-Name: 2ea300fb8f7c497f3f092dc91f4305d8431c27d9
This commit is contained in:
drh
2017-03-08 18:06:20 +00:00
parent 3ee83efec1
commit f80d4ff59f
3 changed files with 8 additions and 7 deletions

View File

@@ -5713,6 +5713,7 @@ static int do_meta_command(char *zLine, ShellState *p){
char *zSep; /* Separator */
ShellText sSql; /* Complete SQL for the query to run the hash */
ShellText sQuery; /* Set of queries used to read all content */
open_db(p, 0);
for(i=1; i<nArg; i++){
const char *z = azArg[i];
if( z[0]=='-' ){