mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-06 15:49:35 +03:00
Make the shell aware of SQLITE_OMIT_MEMORYDB. Ticket #1395. (CVS 2640)
FossilOrigin-Name: 71a71cef5b3c97744322ceceb48ac3055512c987
This commit is contained in:
12
manifest
12
manifest
@@ -1,5 +1,5 @@
|
|||||||
C Increase\sresolution\sof\stime-of-day\son\sunix.\s\sAdd\san\sexperimental\nsqlite3_profile()\sAPI.\s(CVS\s2639)
|
C Make\sthe\sshell\saware\sof\sSQLITE_OMIT_MEMORYDB.\s\sTicket\s#1395.\s(CVS\s2640)
|
||||||
D 2005-08-29T23:00:04
|
D 2005-08-29T23:06:24
|
||||||
F Makefile.in 12784cdce5ffc8dfb707300c34e4f1eb3b8a14f1
|
F Makefile.in 12784cdce5ffc8dfb707300c34e4f1eb3b8a14f1
|
||||||
F Makefile.linux-gcc 06be33b2a9ad4f005a5f42b22c4a19dab3cbb5c7
|
F Makefile.linux-gcc 06be33b2a9ad4f005a5f42b22c4a19dab3cbb5c7
|
||||||
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
|
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
|
||||||
@@ -64,7 +64,7 @@ F src/prepare.c 86f0d8e744b8d956eff6bc40e29049efee017610
|
|||||||
F src/printf.c cea584c5888688c650d856563aadc4296b5afac7
|
F src/printf.c cea584c5888688c650d856563aadc4296b5afac7
|
||||||
F src/random.c 90adff4e73a3b249eb4f1fc2a6ff9cf78c7233a4
|
F src/random.c 90adff4e73a3b249eb4f1fc2a6ff9cf78c7233a4
|
||||||
F src/select.c f8a9993bcd953eb325c8c3f32985cc52b2947354
|
F src/select.c f8a9993bcd953eb325c8c3f32985cc52b2947354
|
||||||
F src/shell.c 7fb744da457b0d11e0af7f6a2f6b000fc09fe588
|
F src/shell.c d2d4ef04732c28a84d108b8413cd4e584754a158
|
||||||
F src/sqlite.h.in d6561d51025d08de4f455607f3f9f9aa76e855d5
|
F src/sqlite.h.in d6561d51025d08de4f455607f3f9f9aa76e855d5
|
||||||
F src/sqliteInt.h f379d29ba17d7082e680c092bce0e6d4bd2d839a
|
F src/sqliteInt.h f379d29ba17d7082e680c092bce0e6d4bd2d839a
|
||||||
F src/table.c 25b3ff2b39b7d87e8d4a5da0713d68dfc06cbee9
|
F src/table.c 25b3ff2b39b7d87e8d4a5da0713d68dfc06cbee9
|
||||||
@@ -299,7 +299,7 @@ F www/tclsqlite.tcl 3df553505b6efcad08f91e9b975deb2e6c9bb955
|
|||||||
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
|
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
|
||||||
F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b
|
F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b
|
||||||
F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
|
F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
|
||||||
P 9b914901a18f8ea39c39a51509c0b3b862c13d6a
|
P ed2ca0873fa89d6cfd123541d5d1c6b92c72b6ab
|
||||||
R 96cb61bb4ce476297e665f65a9bddb8d
|
R 41099399cd49b9960dee1069a4863a31
|
||||||
U drh
|
U drh
|
||||||
Z 62e9fd06364aae1ba0c7353d50daae6d
|
Z 615ba8ef5a759c76ee392a7c5fb87948
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
ed2ca0873fa89d6cfd123541d5d1c6b92c72b6ab
|
71a71cef5b3c97744322ceceb48ac3055512c987
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
** This file contains code to implement the "sqlite" command line
|
** This file contains code to implement the "sqlite" command line
|
||||||
** utility for accessing SQLite databases.
|
** utility for accessing SQLite databases.
|
||||||
**
|
**
|
||||||
** $Id: shell.c,v 1.124 2005/08/27 01:50:54 drh Exp $
|
** $Id: shell.c,v 1.125 2005/08/29 23:06:24 drh Exp $
|
||||||
*/
|
*/
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -1698,6 +1698,13 @@ int main(int argc, char **argv){
|
|||||||
}
|
}
|
||||||
data.out = stdout;
|
data.out = stdout;
|
||||||
|
|
||||||
|
#ifdef SQLITE_OMIT_MEMORYDB
|
||||||
|
if( data.zDbFilename==0 ){
|
||||||
|
fprintf(stderr,"%s: no database filename specified\n", argv[0]);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Go ahead and open the database file if it already exists. If the
|
/* Go ahead and open the database file if it already exists. If the
|
||||||
** file does not exist, delay opening it. This prevents empty database
|
** file does not exist, delay opening it. This prevents empty database
|
||||||
** files from being created if a user mistypes the database name argument
|
** files from being created if a user mistypes the database name argument
|
||||||
|
|||||||
Reference in New Issue
Block a user