drh
e14cd93f2e
The command-line shell ignore errors in sqlite3_close() when shutting down.
...
FossilOrigin-Name: 925332c3d79f6252895ff1a367f795630619247e
2010-12-08 03:28:17 +00:00
drh
81d7fd13e4
Changes to the shell which should, in theory, allow it to work with
...
libeditline as an alternative to libreadline.
FossilOrigin-Name: e474fd9e7f89644a7840e33e9df03dbaa4dd28bd
2010-12-08 00:02:26 +00:00
drh
233f816b84
Improve the accuracy of the Pager heap usage estimate.
...
FossilOrigin-Name: ae89777e7f8bae2cdd3407395ea84c1b39577c4b
2010-07-28 17:36:11 +00:00
drh
29dfbe3b70
Record the pcache allocation size statistics even for pcache overflow
...
allocations. Adjust the wording on one of the stat output lines in
the shell.
FossilOrigin-Name: f9adf66ad575abbb63736caef27bd3c619e516a6
2010-07-28 17:01:24 +00:00
shaneh
642d8b87fe
Modify CLI to optionally display "stats".
...
FossilOrigin-Name: 419ce0ed89d10252492b2926817259899ee74e71
2010-07-28 16:05:34 +00:00
drh
72af0774f9
Make sure to do a clean shutdown of the library upon existing the shell
...
in order to remove WAL files.
FossilOrigin-Name: c1762dda00b8bdb7c3247617ac4cb654f1d95cf7
2010-05-06 20:19:55 +00:00
dan
0f831771c3
Modify the command line tool to disable all mutexes. The command line tool is single-threaded.
...
FossilOrigin-Name: 00e5679047a0a96dc4396aae5e061909faf3b81d
2010-03-03 07:23:12 +00:00
drh
127f9d75e2
Add the ".log" command to the shell. This shows that some errors are logged
...
multiple times and other errors are never logged at all.
FossilOrigin-Name: 6d910245ad0097521cf1619449cc3d202137b8b8
2010-02-23 01:47:00 +00:00
drh
5bd1d051e8
Remove the ".genfkey" command from the shell. We've had foreign-key support
...
in the core since 3.6.19. Anyone who still needs the simulated foreign-key
triggers can always generate them with an older version of the shell.
FossilOrigin-Name: c4401fc93b66c5339422d7e765a4a32b1ef96bdb
2010-02-23 01:01:58 +00:00
drh
a8c62df904
Fix a compiler warning in shell.c. Updates to comments in trigger.c.
...
FossilOrigin-Name: c727601eecd85a26dbd4fc36823d77bec34da3c3
2010-02-15 15:47:18 +00:00
shaneh
b7977c5539
Fix a problem with the CLI where not all SQL commands were being echoed.
...
Added tests of same to tools/shell2.test. Ticket [eb620916be].
FossilOrigin-Name: 7080ae3bc3828168483ac23d5b8976d67ea5089e
2010-01-18 18:17:10 +00:00
dan
4564cedd80
Fix a problem in the shell tool. In some cases sqlite3_errmsg() was being called before sqlite3_finalize(), causing error messages to be more generic than they should be.
...
FossilOrigin-Name: e5d07045fabe0803715cfb291aa9e971235cb08a
2010-01-05 04:59:56 +00:00
shaneh
13b3602e1c
In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines.
...
FossilOrigin-Name: b1b48be1cf55f3179eab8824cf5fee8100518845
2009-12-17 21:07:15 +00:00
shaneh
5fc250100e
Modified CLI to raise an error when extra command line options are passed.
...
Added tests to verify correct handling, as well as other basic handling
of command line options. Ticket [f5cb008a65].
FossilOrigin-Name: 09b4f19f100fe82a8321b9ded99e679b7eedc1fa
2009-11-11 04:17:07 +00:00
shaneh
ac81cd71a5
Fix for datbase name being ignored with the -batch option in the CLI. Ticket [aeff892c57].
...
FossilOrigin-Name: 8097c64acfc74c913bc6d7d631bc1423c90df93f
2009-11-10 17:07:30 +00:00
drh
c81c11f62c
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
...
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-11-10 01:30:52 +00:00
shaneh
e2aa9d7192
Improved shell "dot" command argument handling. Ticket [f12a9eeedc].
...
FossilOrigin-Name: 9fb699193378bf812ef97889adc0b1a98ad56d5b
2009-11-06 17:20:17 +00:00
shane
f69573d33e
In shell, modified to not print informational messages during startup while in "batch mode".
...
Ticket [2cb66577f6].
FossilOrigin-Name: e3898e25cf0ea870612eeaca6af2396f0eab0e07
2009-10-24 02:06:14 +00:00
shane
86f5bdbe59
In shell, changed ".tables" command to not add '%' to specified pattern. This is consistent
...
with other commands that take a LIKE pattern (.dump, .schema, .indices).
Updated internal help to better describe LIKE pattern usage.
Fixed a few more inconsistencies in error messages. Ticket [6da68f691b].
FossilOrigin-Name: 7201244e67c197f16d6752cc0fa7232a9664381e
2009-10-24 02:00:07 +00:00
shane
9bd1b44944
In shell, ensure that do_meta_command() returns consistent error values.
...
Adjusted the text of some error message to be more consistent.
Ticket [beb2dd69ad].
FossilOrigin-Name: 1ebac9edddd28bdbbd9815fdb64eb9129f39f94a
2009-10-23 01:27:39 +00:00
shane
916f961b9e
In shell, modified "import" handling to ensure error code returned correctly on exit.
...
Ticket [bd770b2c52].
FossilOrigin-Name: 009efad0f4293dd08a6f2f16d8eb9e94e2f962ca
2009-10-23 00:37:15 +00:00
shane
b9fc17d726
In shell, reworked .header and .echo handling.
...
Updated shell_exec() to (really) handle multiple statements.
Tickets [72adc99de9], [7b61b6c6ce], and [eb620916be].
FossilOrigin-Name: 790402c150e2026cd0c147a4cadbe9b9ab97b688
2009-10-22 21:23:35 +00:00
shane
ad6b8d073d
In shell, in shell_exec() logic, use type info if available when
...
outputting in "insert" mode for other types in addition to blobs.
Changed shell_exec() to use sqlite_prepare_v2(). Ticket [72adc99de9].
FossilOrigin-Name: ab99faca6ce57a5e37405dfc8dc55d149cf3f8a3
2009-10-22 18:12:58 +00:00
shane
626a6e4aa2
Updated shell to output blobs in X'1234' form when in "insert" mode. Ticket [72adc99de9].
...
FossilOrigin-Name: a2ad9e6363308b7137fcb1916769151b96933cdb
2009-10-22 17:30:15 +00:00
shane
43d9cb2c94
Modified shell to call output_html_string() for header values in .mode html.
...
Updated output_html_string() to support the 5 basic HTML entities (<,>,&,',").
Ticket [dc3a6e5b31].
FossilOrigin-Name: c8815fcd88d17b2864e689c84eb8a63ef242ff04
2009-10-21 14:11:48 +00:00
shane
16f954cf80
Made detectSchemaProblem function and aSchemaTable array static. Ticket [6f8b0c5855].
...
FossilOrigin-Name: c6f22f3e38018246a2add1a509aa6c5c55b7e0be
2009-10-21 13:53:58 +00:00
shane
d2bed1c8ca
For the shell, changed the output of the errors on lines 2910 and 2914 to goto
...
stderr. I left the timer values going to stdout as all of the other interactive
shell commands (startup banner, help, etc.) go to stdout and I felt this was more
consistent. Ticket 43db771bb2.
FossilOrigin-Name: 8a8eeb0c5af4bbeafd9864b03557eb9cd32f09ce
2009-10-21 03:56:54 +00:00
shane
b320ccd782
For Windows version of shell, add support for .timer command
...
using the GetProcessTimes() API if available (in the same way
getrusage() is used on UNIX.) Ticket 89668ca167.
FossilOrigin-Name: 83216fbe904425f5b15d1ae689cea9d13670e979
2009-10-21 03:42:58 +00:00
dan
8b6d37d8bc
Fix a problem in the legacy genfkey code to do with column names that require quoting.
...
FossilOrigin-Name: 273ccbf18af5191807678a0a0c09cda82408b29c
2009-10-08 13:42:28 +00:00
drh
f1dfc4fbb3
Modify the ".dump" command on the CLI so that it always issues a
...
PRAGMA foreign_keys=OFF at the top of the output.
FossilOrigin-Name: 0755b9b697d32292f378a4b934ca1cf9f56225cd
2009-09-23 15:51:35 +00:00
dan
1da40a381f
Check in implementation of foreign key constraints.
...
FossilOrigin-Name: d5d399811876391642937edeb9e8434dd9e356f5
2009-09-19 17:00:31 +00:00
drh
de7446bd85
Fix the ".genfkey" command of the CLI so that it does not leak memory
...
if sqlite3_realloc() fails. Ticket #3891 . (CVS 6696)
FossilOrigin-Name: a028d69c70ae961f418052a91aa1518e80a8ddf5
2009-05-31 17:16:09 +00:00
drh
157e29a9e3
In the CLI in the ".dump" command, do not attempt to clear the sqlite_sequence
...
table until the first row of content of that table is seen. Ticket #3867 (CVS 6664)
FossilOrigin-Name: bedd5ad1942021ef2b3defde3ff3e8aead86137e
2009-05-21 15:15:00 +00:00
drh
4f32476cea
In the CLI, always "dump" the sqlite_sequence table last. Ticket #3867 (CVS 6663)
...
FossilOrigin-Name: a0028d4808275cb1d020d56344d90b2a04603f4d
2009-05-21 14:51:03 +00:00
drh
93a989cf65
Remove surplus white space from shell.c. Use strlen30() instead of strlen(). (CVS 6346)
...
FossilOrigin-Name: 324a1aff300b7349b9fc1dea56d640d86500f100
2009-03-16 10:59:44 +00:00
danielk1977
9365c6760a
Do not overrun a buffer in the genfkey code (now part of shell.c). Fix for #3722 . (CVS 6344)
...
FossilOrigin-Name: 943b11fb188835f0c62b6064b084192b1bbe1c0c
2009-03-13 15:32:53 +00:00
shane
c0688ea172
Removed compiler warnings from MSVC builds. Ticket #3701 . (CVS 6335)
...
FossilOrigin-Name: 5477833ec7f707ea9937d3fd6a6d8ab49f2016f1
2009-03-05 03:48:06 +00:00
drh
da10822a61
Move the new genfkey shell command out from within #ifdef _WIN32_ (CVS 6327)
...
FossilOrigin-Name: 48ee0e47e2d9669cc7425104e6b04ce49caf2e56
2009-02-25 19:07:24 +00:00
danielk1977
e632004fdd
Remove genfkey.c. Change genfkey.README to talk about the new shell dot-command, not the old standalone genfkey program. (CVS 6326)
...
FossilOrigin-Name: 36d699660bc328e65170d72be715338e82dbbb50
2009-02-25 15:43:57 +00:00
danielk1977
c8c7069035
Add the 'genfkey' functionality to the sqlite3 shell. Accessed using a new dot-command - ".genfkey". (CVS 6325)
...
FossilOrigin-Name: 0a59fb28b46e5d85c850d1dfa1385a4656e4dda5
2009-02-25 15:22:02 +00:00
drh
dc2c491525
Add "backup" and "restore" methods to the TCL interfaces and test cases
...
to exercise those methods. (CVS 6260)
FossilOrigin-Name: e420a3cedc7ee086a77cd719f6b9fb85415eb5f3
2009-02-04 22:46:47 +00:00
drh
9ff849fc87
Add ".backup" and ".restore" commands to the CLI - implemented using the
...
new backup API. (CVS 6259)
FossilOrigin-Name: 003e1d62189e9e37f901d86a696cfccd22bd3b38
2009-02-04 20:55:57 +00:00
shane
d87897dfa2
Minor changes to remove a few MSVC compiler warnings at /W3. Ticket #3610 . (CVS 6215)
...
FossilOrigin-Name: c74c78e4eb7f6d674b7564b33387db996fbe5725
2009-01-30 05:40:27 +00:00
drh
a81c64a2da
Make some changes requested by Fedora. (CVS 6181)
...
FossilOrigin-Name: 7bc08bc719c2e9ca6d92d4709c0478e15fdfb131
2009-01-14 23:38:02 +00:00
drh
8f800a7d42
Fix the shell so that the ".schema" command works regardless of the
...
pragma settings. Ticket #3585 . (CVS 6180)
FossilOrigin-Name: 6f6b638e44a8cfc741594f02b0178fa98ed7e2c1
2009-01-14 23:17:55 +00:00
drh
233a531ba7
Fix the Oracle and MS-Sql command-line terminator logic in the CLI.
...
Ticket #3544 . (CVS 6041)
FossilOrigin-Name: dcc8935fa0ccf86648c22818823bf1daef8f3939
2008-12-18 22:25:13 +00:00
shane
7d3846ac26
Removed a few more harmless warnings from MSVC. (CVS 6018)
...
FossilOrigin-Name: 72fd92bd67ed2b8e193cf3119e60d0a8f1e819c9
2008-12-11 02:58:26 +00:00
shane
18e526c16b
Work to remove harmless MSVC compiler warnings. (CVS 6013)
...
FossilOrigin-Name: 715dcd52c1372c62873cff5db97fdbdfce617808
2008-12-10 22:30:24 +00:00
drh
4f21c4af30
Fix an issue with the new sqlite3Strlen30() introduced by
...
check-in (6007). Additional casts for compiler warnings. (CVS 6011)
FossilOrigin-Name: 258722b6178f60eaccef1675aab3edc456d413a5
2008-12-10 22:15:00 +00:00
drh
ea6788322e
Never use strlen(). Use our own internal sqlite3Strlen30() which is
...
guaranteed to never overflow an integer. Additional explicit casts to
avoid nuisance warning messages. (CVS 6007)
FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
2008-12-10 19:26:22 +00:00