diff options
author | drh <> | 2024-10-14 11:48:19 +0000 |
---|---|---|
committer | drh <> | 2024-10-14 11:48:19 +0000 |
commit | 5899d9c08f1291584f6b5799402d847b2ce051d1 (patch) | |
tree | f61a0167f7b1a6316b0fb4b622a96372a397918a /src | |
parent | 39b9249562d460f1d1a372467b48308968fdf3b0 (diff) | |
download | sqlite-5899d9c08f1291584f6b5799402d847b2ce051d1.tar.gz sqlite-5899d9c08f1291584f6b5799402d847b2ce051d1.zip |
There is no need to DELETE the content of sqlite_sequence in the output of
the CLI ".dump" command because that table will initially be empty if it
exists at all. [forum:/forumpost/2e31f49d00472cec|Forum post 2e31f49d004]
FossilOrigin-Name: 8d7fe903d09a2a7961f506b2c8e93765e4feb7cd48aac436d75c7ec7838e856a
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index 9f7ab6b34..bbf08f809 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -4763,7 +4763,7 @@ static int dump_callback(void *pArg, int nArg, char **azArg, char **azNotUsed){ noSys = (p->shellFlgs & SHFLG_DumpNoSys)!=0; if( cli_strcmp(zTable, "sqlite_sequence")==0 && !noSys ){ - if( !dataOnly ) sqlite3_fputs("DELETE FROM sqlite_sequence;\n", p->out); + /* no-op */ }else if( sqlite3_strglob("sqlite_stat?", zTable)==0 && !noSys ){ if( !dataOnly ) sqlite3_fputs("ANALYZE sqlite_schema;\n", p->out); }else if( cli_strncmp(zTable, "sqlite_", 7)==0 ){ |