drh
c3cbd678a1
Fix the command-line shell so that the ".schema --indent" command does a better
...
job of dealing with \r\n in the middle of a CREATE statement in the schema.
FossilOrigin-Name: 4258fb578a6e75590c7314fe511ca8dc6659e5f2d3a54d8f60ff705fe51ccc92
2017-10-05 19:12:10 +00:00
mistachkin
2158a0c7ac
Fix harmless compiler warnings seen with MSVC.
...
FossilOrigin-Name: faa22e29a5a05a16d46a428d838acedfa7d6fad6239495d59a6a1f4764e1b1b6
2017-09-09 00:51:36 +00:00
dan
9c1cf3235c
Remove unnecessary "__declspec(dllexport)" qualifiers from generated file
...
shell.c.
FossilOrigin-Name: bcc20be5b290c563183e82a590cc1fdabadfb13475fd8f6b3d810365cea5d868
2017-08-30 13:21:17 +00:00
drh
20554381d9
Fix the ".dump", ".schema", and ".fullschema" commands of the command-line
...
shell so that they work even if PRAGMA empty_result_callbacks is enabled.
Fix for ticket [02f0f4c54f281].
FossilOrigin-Name: cf0d3715caac9149e65bb4802fd179d0952cfaf9add17ac243c6ca87cbd6e6b7
2017-08-28 11:12:57 +00:00
drh
0a02c72e79
Less dramatic changes to the source-id following an edit. Modify the way
...
that the amalgamation is constructed to give it the opportunity to detect
changes and modify the source-id.
FossilOrigin-Name: 564c7340a3368501c3da885afde52123ed7f558801f6190cbe6173dfe9704b70
2017-08-22 21:07:03 +00:00
drh
6e97f8ec84
Combine the Parse.ckBase and Parse.iSelfTab fields into just Parse.iSelfTab.
...
This fixes a problem with date/time functions in check-constraints. Add
some test cases for date/time functions in index expressions and check
constraints.
FossilOrigin-Name: 22eda0985ecd1f456c073e6ad735a8417f3ff1fb6aaad1640e1cec01e50c51d8
2017-07-20 13:17:08 +00:00
drh
80f134c8aa
Change the default command-line shell history depth to 2000 lines.
...
FossilOrigin-Name: 0b69aa7e37495f15c3fcc36969b650262b5aa5500fb40800de9a5c56a03f309d
2017-07-18 14:41:44 +00:00
drh
968d8715fd
Fix harmless compiler warnings in the readline tab-completion logic of the
...
command-line shell.
FossilOrigin-Name: 271ca4acfcff448cf863045595d2c2616decd13b6015d7db481c91e2ad5bb92a
2017-07-14 00:28:28 +00:00
drh
8999798e60
Fix harmless compiler warnings in the core.
...
FossilOrigin-Name: 55e93f256018757e5e1cb3b10ef48abf5914e7687419eae58b00998a37061261
2017-07-11 18:11:33 +00:00
drh
56eb09bc23
Add support for tab-completion (using the ext/misc/completion.c virtual table)
...
to the command-line shell.
FossilOrigin-Name: 95cd1d9f8baa6be305c9a8bfa26fef2a403f2d5b3b5c9c55382ec04f0bc98d40
2017-07-11 13:59:07 +00:00
drh
2ce15c3f4c
Change the src/shell.c file so that it is generated from a new script at
...
tool/mkshellc.tcl and the template file src/shell.c.in, and automatically
includes the extensions it needs out of ext/misc.
FossilOrigin-Name: 17e0bb12d82b510b86b6886b9fd0faf39b60b1374027344f89d7b89a32b842b9
2017-07-11 13:34:40 +00:00
drh
dbc26722cd
Add the "--newlines" option to the ".dump" command in the shell to disable
...
the newline escaping mechanism.
FossilOrigin-Name: bde431b1e332feaeb516dc46d180e2b2f42820c471feed7eda89452ada898dc9
2017-07-10 18:04:41 +00:00
drh
a7a0bfab91
In the command-line shell, when running ".schema" give a sensible error when
...
the database file is locked.
FossilOrigin-Name: cc329eb8d65171f3f4fcb39b0e55ef85c97a77f3510cf864bbc1537f993d0074
2017-07-07 18:06:49 +00:00
drh
a501f7dab4
In the command-line shell, add the -quote option to start up in quote mode.
...
Enhance the ".mode" command so that it reports the current output mode if
given no arguments.
FossilOrigin-Name: 5e3f9ea5c4fad35fe02a12d59114e94ee00e0a09c1840c88908a4c282e2f4625
2017-06-29 21:33:25 +00:00
drh
c31b79d2a4
Remove the ".explain" command from the ".help" output of the command-line
...
shell, though keep the implementation around for backwards compatibility.
FossilOrigin-Name: 7782c04e9b2c0e95b5ac2a38876c1a233becfd892140bc6844790d62aeaff4f7
2017-06-29 21:11:27 +00:00
drh
d5fbde80a2
The ".import" command of the shell, and the csv virtual table extension both
...
ignore a single UTF-8 BOM at the beginning of their input.
FossilOrigin-Name: 7c15d762d99c2e3e534cd35dfe25ddcd317637eb1f2655fd24c2dd5f9d5a7613
2017-06-26 18:42:23 +00:00
drh
45e7d7dd1c
Make sure enough memory is allocated for pathological quoting cases when
...
computing a quoted table name in the command-line shell.
FossilOrigin-Name: 0583b84ab444db3ae3c93db619b67bf84b0305ab989200e77214e02ff2dc923a
2017-06-24 13:31:40 +00:00
drh
0942559a14
Move the "shell_add_schema()" SQL function used by the ".schema" command
...
of the command-line shell to a different spot in the shell.c source file
so that it is not in the middle of an unrelated module.
FossilOrigin-Name: 254617a1ccfa1736d4e53d670d80319c79c4d93ebf1de69d89ebdba3949bc270
2017-06-15 16:56:05 +00:00
drh
90cdec0672
Fix harmless compiler warnings in the shell.c file
...
FossilOrigin-Name: 9afd7a2ffd3a39456190ad05e85ff6485298aae262d9e0698a58c1d73507a36f
2017-06-15 13:07:56 +00:00
drh
594ccd09b1
Improvements to the ".tables" command in the command-line shell so that
...
it shows the name of all schemas if the name is anything other than "main".
FossilOrigin-Name: c7f778b7cee16a1dcebccd256408ee1d08ef2b62e388a9ebba5738a0a89bf3a0
2017-06-15 12:50:47 +00:00
drh
20c9c3f4eb
In the command-line shell, enhance the ".schema" command show that it
...
shows the schema for ATTACH-ed databases in addition to "main".
FossilOrigin-Name: 48e086284a76da10a85315bc992e2294bd4711e35ec5a5abaa16e39a6a69d206
2017-06-15 12:21:09 +00:00
drh
c5d353fb33
Adjust the implementation of the ".selftest" feature of the shell to avoid
...
using the deprecated sqlite3_get_table() interface.
FossilOrigin-Name: 3168e2c92ad0a0dafc78a27ee1d87ac89f426585f506f418a0182141335dc68b
2017-06-09 02:27:49 +00:00
drh
64bf76d2b2
Fix the column width deduction logic in the command-line shell to account
...
for multi-byte utf8 characters.
FossilOrigin-Name: ed0842c156ab1a78d5d00d3a55dab5e3f08cd349328d606724688f1528df3f6b
2017-06-05 12:29:26 +00:00
mistachkin
e16a350f17
Improve shell help text for the '.open' command.
...
FossilOrigin-Name: 7cc940a97efc096ff3725710f526c06f52453bd923fb9e825ce6990275df747a
2017-05-29 03:48:13 +00:00
drh
ce13b99f99
Remove the msvc.h header file from the autoconf tarball.
...
FossilOrigin-Name: 84996aef68adeabc8bd97cad269188c67de628f776337a25ec2d63bc956cee78
2017-05-23 20:00:00 +00:00
drh
453ca043a2
Add the ".cd" command to the command-line shell.
...
FossilOrigin-Name: 5fe28e15b1d6d8a588fcaf93c6035c0e0ab7bcad1067c7933cd430d2e04bbbd8
2017-05-22 18:00:34 +00:00
drh
f8a2e8c2d2
Fix requirements marks and harmless compiler warnings.
...
FossilOrigin-Name: 198ff4c01d86d193a54745764d69376cab8e94747a4daa444690f7e1ec87800b
2017-05-06 17:12:52 +00:00
drh
050b124ce2
Fix a collision of the "B0" identifier name between the termios.h header
...
file and the SHA3 implementation in the shell.
FossilOrigin-Name: b9a58daca80a815e87e541cb5fff9bc8b93f131d223f322c5b83dd5a5f0c0312
2017-05-04 11:13:50 +00:00
drh
6887e8facd
Fix the ".column" output mode in the command-line shell so that it correctly
...
counts and formats multi-byte UTF characters.
FossilOrigin-Name: f508aff8d1782abdff4d03726ae098607a0ee6cfd2e35b130097ee5043e98960
2017-04-17 13:18:42 +00:00
drh
13fe138b0a
Fix the quoting mechanism for ".dump" so that it is not applied for the
...
".mode quote" output.
FossilOrigin-Name: 78c1e90305d48917d9423d8e50a7dfd15ec27aa93cb421610062229c7ede13a6
2017-04-08 13:42:55 +00:00
drh
72507d431b
Fix the ".dump" command so that it works with ".headers on". Also fix the
...
display of ".mode insert" with ".headers on".
FossilOrigin-Name: a6ce57ee3c7f3527554a75cc1dd5ebcd33c944d4dca07b134d103596a2ae5b32
2017-04-08 00:55:13 +00:00
drh
6193d49cdf
Use replace() instead of char() to quote newline and return characters in
...
strings in the output of .dump, to avoid excess expression complexity.
FossilOrigin-Name: 4c2b572969ea2ed2a925444ecfa356aa877018cbb9c4f57d081ab4b535cd1dd0
2017-04-07 11:45:58 +00:00
dan
54e2efcd2f
Fix the ".lint fkey" shell command for cases where the child key is also an
...
INTEGER PRIMARY KEY.
FossilOrigin-Name: 48826b222c110a90996a84605318ea6b1e502b8c5129f4d561f8350dbdbcd264
2017-04-06 14:56:26 +00:00
dan
50da9382f9
Fix the ".lint fkey" shell tool command so that it works for foreign keys that
...
refer implicitly to primary key columns with non-BINARY default collation
sequences.
FossilOrigin-Name: 327eff25ba2420267cc8dc49dd3c3aab45f4bf9e060d1ad480e25d016d21f3ba
2017-04-06 12:06:56 +00:00
drh
34ad36bf81
Disable the new --preserve-rowids option on the CLI ".dump" command if
...
compiled with SQLITE_OMIT_VIRTUALTABLE.
FossilOrigin-Name: bd5bbe4eece9051cc8c27d834d22fb243d34f261641984555d02a27b7038d4f6
2017-03-25 18:15:05 +00:00
drh
2fb79e9b04
Fix two harmless compiler warnings.
...
FossilOrigin-Name: 32be9c3faaafd736da3f49d475dc9279af4e4ba38070b60033d898345080acf0
2017-03-25 12:08:11 +00:00
drh
701ff6ad2d
Fix harmless compiler warnings in the shell.
...
FossilOrigin-Name: a786829783ef65ef270ca360712364cbd47a540d31ed1547d50808aad698bea7
2017-03-22 12:51:34 +00:00
drh
a5d75ba9ea
Mention the ".selftest" command in the ".help" output of the CLI.
...
FossilOrigin-Name: 37f766dbad1f99ff86dd1b771bf443036e928e5b4d8abe55bbe4acf3362c7be2
2017-03-15 14:20:34 +00:00
drh
708b22b1e3
The output of the ".dump" command in the CLI quotes newline and carriage-return
...
characters using "char(10)" and "char(13)".
FossilOrigin-Name: 8b2954dd8376e2de985cf5dedeb6eec32c430505
2017-03-11 01:56:41 +00:00
drh
891d6b4e9e
Increase the number of significant digits in floating point literals on
...
".dump" output from the shell.
FossilOrigin-Name: 7359fcacaadc349f520536311dcd1d0b5cea7673
2017-03-11 00:46:57 +00:00
drh
a2df53bd61
Enhance the ".stats" dot-command in the CLI to use sqlite3_status64() instead
...
of sqlite3_status().
FossilOrigin-Name: 118f5c0564fef70cbd06fc0d9dbb2baec162cc39
2017-03-10 14:36:10 +00:00
drh
f157d10f9f
Improvements to ".selftest --init". Tests are number in increments of 10
...
starting with 100. The tests are generated inside a SAVEPOINT. Errors are
reported during test generation. Tests can be appended to existing tests.
Add a test case to verify the schema.
FossilOrigin-Name: b044b152aac2ec606750940ea816ad4a4aef8eb6
2017-03-10 01:05:38 +00:00
drh
fb546afb4d
Remove the test/dbselftest.c program. In its place, add the ".selftest"
...
command to the CLI. The new CLI version is .selftest is slightly different
in that it uses SHA3 hashing instead of SHA1, so the new is subtly
incompatible with the old.
FossilOrigin-Name: f4fcd46f08ba59d2a3e772cad98383129f648386
2017-03-09 22:00:33 +00:00
drh
f8563c00b2
Fix the ".dump" command to correctly extract tail data from corrupt
...
WITHOUT ROWID tables.
FossilOrigin-Name: 6c627e50622d8bcd25ec7d5503f3fafd725673a8
2017-03-09 18:13:52 +00:00
drh
e6e1d124db
Begin moving separate boolean variables in the ShellState object of the CLI
...
into the shellFlgs bitmask.
FossilOrigin-Name: 50eec5d9aa38fab1a85d788356ffdaf6c35d9ece
2017-03-09 13:50:49 +00:00
drh
f80d4ff59f
Make sure the database connection is open prior to running the ".sha3sum"
...
command.
FossilOrigin-Name: 2ea300fb8f7c497f3f092dc91f4305d8431c27d9
2017-03-08 18:06:20 +00:00
drh
3ee83efec1
In the ".sha3sum" command, if there is a LIKE pattern, show the hashes for
...
each table separately. Without a LIKE pattern, show a single hash over the
entire database.
FossilOrigin-Name: 30f878832820ce7ccc4627c4f0f98fbe82f8b0f6
2017-03-08 17:56:54 +00:00
drh
1554bc8a2e
Add the ".sha3sum" command to the CLI - used to compute a cryptographic hash
...
of the <em>content</em> of a database file or of individual tables with in
that file.
FossilOrigin-Name: fc663799075a22b0a61a6a114116bb2d1b96d4ab
2017-03-08 16:10:34 +00:00
drh
f42d318002
In the CLI, avoid unnecessary identifier quoting in the ".dump" output.
...
Also add new ".dump" test cases.
FossilOrigin-Name: de65f907610a59e64cbf2214789c11f7117a86a6
2017-03-08 12:25:18 +00:00
drh
e611f14471
Add the --preserve-rowids option to the ".dump" command in the CLI.
...
FossilOrigin-Name: c60aee24714a47ce12ee2a4dcefb9f55211d3761
2017-03-08 11:44:00 +00:00