mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-06 15:49:35 +03:00
Fix the ".dump" command in the shell so that it works with AUTOVACUUM.
This is related to ticket #1095. (CVS 2310) FossilOrigin-Name: 76c4a96c5a2148f253cc5e034567b16317343be7
This commit is contained in:
12
manifest
12
manifest
@@ -1,5 +1,5 @@
|
||||
C Make\ssure\sthe\src\svariable\sin\sOsWrite\sof\sos_win.c\sis\salways\sinitialized.\nAlso\sassert\sthat\sthe\samt\sparameter\sis\salways\sgreater\sthan\szero.\nTicket\s#1094.\s(CVS\s2309)
|
||||
D 2005-02-03T00:29:47
|
||||
C Fix\sthe\s".dump"\scommand\sin\sthe\sshell\sso\sthat\sit\sworks\swith\sAUTOVACUUM.\nThis\sis\srelated\sto\sticket\s#1095.\s(CVS\s2310)
|
||||
D 2005-02-03T00:42:35
|
||||
F Makefile.in ffd81f5e926d40b457071b4de8d7c1fa18f39b5a
|
||||
F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
|
||||
F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1
|
||||
@@ -59,7 +59,7 @@ F src/pragma.c c893f03104e94e0921861bd2d3dbd80c47515f7b
|
||||
F src/printf.c 3d20b21cfecadacecac3fb7274e746cb81d3d357
|
||||
F src/random.c eff68e3f257e05e81eae6c4d50a51eb88beb4ff3
|
||||
F src/select.c fee51a0d40f1b56d1157f49f9f0fe7fc5af38769
|
||||
F src/shell.c 1f0da77ef0520afd6df71f4781076021874310f3
|
||||
F src/shell.c 3cb0ef124ed9cd582ce89aec59ff7c659bc6e61b
|
||||
F src/sqlite.h.in 2a2cb0131cdbd3fe2082de3261efe0ef002e6816
|
||||
F src/sqliteInt.h 96790021c6610fb4016ac710a28282f006321bc1
|
||||
F src/table.c 25b3ff2b39b7d87e8d4a5da0713d68dfc06cbee9
|
||||
@@ -272,7 +272,7 @@ F www/tclsqlite.tcl e73f8f8e5f20e8277619433f7970060ab01088fc
|
||||
F www/vdbe.tcl 095f106d93875c94b47367384ebc870517431618
|
||||
F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0
|
||||
F www/whentouse.tcl 3e522a06ad41992023c80ca29a048ae2331ca5bd
|
||||
P d1ea2fb70be905947c8ff74da8e1f719a8fb85f5
|
||||
R c85ccce2907809e515bc05d150167893
|
||||
P 4b399ae7791288e5d44f90da530908d9ca77ff4b
|
||||
R bbc454e3fb92412b9b1c7b015ba0ed5d
|
||||
U drh
|
||||
Z 76aa18a2185ff42425ab752d44606f71
|
||||
Z 96d8550dcaa0797bdeea532bef3ca53b
|
||||
|
||||
@@ -1 +1 @@
|
||||
4b399ae7791288e5d44f90da530908d9ca77ff4b
|
||||
76c4a96c5a2148f253cc5e034567b16317343be7
|
||||
@@ -12,7 +12,7 @@
|
||||
** This file contains code to implement the "sqlite" command line
|
||||
** utility for accessing SQLite databases.
|
||||
**
|
||||
** $Id: shell.c,v 1.120 2005/01/23 23:43:22 danielk1977 Exp $
|
||||
** $Id: shell.c,v 1.121 2005/02/03 00:42:35 drh Exp $
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -656,7 +656,11 @@ static int dump_callback(void *pArg, int nArg, char **azArg, char **azCol){
|
||||
zType = azArg[1];
|
||||
zSql = azArg[2];
|
||||
|
||||
if( strcasecmp(zTable,"sqlite_sequence")!=0 ){
|
||||
fprintf(p->out, "%s;\n", zSql);
|
||||
}else{
|
||||
fprintf(p->out, "DELETE FROM sqlite_sequence;\n");
|
||||
}
|
||||
|
||||
if( strcmp(zType, "table")==0 ){
|
||||
sqlite3_stmt *pTableInfo = 0;
|
||||
|
||||
Reference in New Issue
Block a user