aboutsummaryrefslogtreecommitdiff
path: root/test/shell1.test
AgeCommit message (Collapse)AuthorLines
7 daysImproved cleanup before and after test cases. Partial solution todrh-0/+1
[bugs:/info/2026-11-18T13:50:26Z|Bug 3 of 2026-11-18T13:50:26Z]. FossilOrigin-Name: f377150d867f733395d0c58af76126447c77cfa0d844a49303436e45a61555e4
2026-10-24Fix various minor problems in the CLI.drh-0/+11
[bugs:/info/2026-10-24T04:43:44Z|Bug 2026-10-24T04:43:44Z] FossilOrigin-Name: a7fd475c0d34d84232e721c724ccbc07729f594ab20aba9eb0631cf76a09ce23
2026-10-20Fix the CLI to correctly handle a ".exit" immediately following drh-0/+3
a ".output memory". [bugs:/info/2026-10-20T13:13:50Z|Bug 2026-10-20T13:13:50Z] FossilOrigin-Name: 2fdd752dc92692e08c805eb10bf78d97e93c8436433c8175fbff310513f340d7
2026-10-08Improvements to the display of DDL SQL statements in the CLI and indrh-6/+6
the sqldiff command-line tool in order to close comments and similar in the case of a corrupt schema, and avoid possible SQL injection attacks. ANT-2026-9VFH4DZS. FossilOrigin-Name: 028a92f9c353d3b400551954de2e09c1723076491f79ff767dd24b452654fda8
2026-09-19Ensure that the comments generated by the ".schema" command in the CLIdrh-0/+10
are not terminated early by rogue SQL. FossilOrigin-Name: e6eef2cb8fff278cfef2b8898e12d641df22c435d70800d0f031ae740cc88b7e
2026-08-21In the CLI, finer-grain control of what status information is displayed viadrh-1/+2
the ".stats" command. Add the ability to reset peak measurements after each display. FossilOrigin-Name: 852972861636d75ed935c3a0b1b170442048a1eaa80c4d4abd1c9de14c8be022
2026-07-08Make the (legacy, deprecated) ".header" command in the CLI responsive todrh-4/+4
the "always" title mode. Clean up title mode and define its operation with improved comments in the TCL interface and in the CLI. Add the "-title auto" option to the CLI. FossilOrigin-Name: f94259fc07cd7856e9c6f81a46689f4f96bbf464fda7f1d11b51a308c296aca0
2026-07-06Add new option "bRowCount" to QRF. Add QRF_Always as a possibility fordrh-1/+2
bTitles. Use these feature to enhance ".mode psql" to be a better approximation of what psql actually does. FossilOrigin-Name: 600c6b464050078b38cc688668148f684243e7c5f08d0aae4d5f72aa6f985482
2026-06-17Fix CLI CSV test cases so that they suppress the CR on windows and thusdrh-3/+3
work cross-platform. FossilOrigin-Name: 7a2c96405e365dd2efb3593e0973536d1f87f7183d5442f3bc98ca23310e5530
2026-06-13Make the --header option to the CLI sticky, so that it does not getdrh-0/+15
turned off by subsequence --csv or similar mode change options. [bugs:/info/2026-06-13T11:49:18Z|Bug 2026-06-13T11:49:18Z] FossilOrigin-Name: b19cef1862444ee694eeea2254aa9a8d74d2343da5a8257c22e3068f388aa2fd
2026-04-12Bug fix in the revised ".prompt" command of the CLI, with test cases.drh-1/+2
FossilOrigin-Name: 7583385593354f90a9818d1820543841109f253dffcec5ca5ed7629336e29fac
2026-03-16Rework the ".indexes" command of the CLI. (1) The PATTERN now matchesdrh-1/+2
the name of the index itself, not the name of the table containing the index, thus making the pattern actually useful. (2) System-generated indexes (for UNIQUE constraints and similar) are omitted unless the -a|-all or --sys options are added. (3) The --expr option causes only expression indexes to be shown. FossilOrigin-Name: 13e2cad810bfd59a9e18eb38bda1241715b76756ffec7d617e9ce99b89f19284
2026-03-10Fix the behavior dot-commands that appear as command line arguments to thedrh-2/+2
CLI so that their effect persists into subsequent commands on the command line. This fix also improves error messages caused by command line arguments. [forum:/forumpost/2026-03-10T19:26:06z|Forum post 2026-03-10T19:26:06z]. FossilOrigin-Name: ff084ae341eab5c4ce9403defee03adc448c05f77648a954f0942a38f640080b
2026-03-02Disable test shell1-5.0 as it is causing a use of initialized deep insidedrh-0/+2
of TCL. FossilOrigin-Name: 440bd6091e3767f0a2f42ffdc92ca5e4736c0a73324fdd15397c3b5dbbc31fb8
2026-02-01Enhance the ".timer" command in the CLI to accept the "once" argument, anddrh-2/+2
so that it leaves its last real-time result in the $TIMER variable. Also fix a harmless warning from an earlier check-in. FossilOrigin-Name: 8ad7dffc261cbb3f7c9b4d38b04282c805c1c047fb431076f85e577c81f21574
2025-12-29Fix error messages associated with .import, along with correspondingdrh-2/+5
test cases. FossilOrigin-Name: 2084e805d0d9da8f419b8506fccd652a7d20262bd95729250a2d2eabfdd079ad
2025-12-13Back out the --compat option from the CLI.drh-2/+2
FossilOrigin-Name: 850d5dbfb0f1eacd1e5213759810ec7e5eba4fcc0b2718dabccd5b269b126f1c
2025-12-10Various improvements to the .mode command of the CLI, and especially to howdrh-1/+1
it handles the --limits option. FossilOrigin-Name: f883b854976d2aa679c87edce3b577f38b5fa518f707706320d1ddb38365e2dd
2025-12-06Remove #ifdefs intended to make SQLite compatible with Windows RT. WinRTdrh-9/+4
was short-lived and has been discontinued for a long time. FossilOrigin-Name: 108691a3cb2f296f0ede06c34271ee185f299bfd76e97a1bd06c730a28d94ff4
2025-12-06Update test cases to work with the new box format and with --quote relaxed.drh-17/+17
FossilOrigin-Name: e3f442d08f455e0aa260cc8db4922a5f611e17afe71b0bb251328ab4b3ad46ca
2025-12-03Fix recently added test cases for Windows.drh-2/+1
FossilOrigin-Name: bccc0d65b0fb617f6c8eb111b6717d3ad419f80d3495dc5c6a69ccd0771b3d9d
2025-12-02Improvements to the ".schema indent" logic.drh-0/+15
[forum:/forumpost/c8136b1bd0|Forum post 2025-12-02T19:04:04Z]. FossilOrigin-Name: 71ea7f38ffd0648c58713d8be5d2f5536f926ec21a0adc3c2a8a9a7ba8ea3826
2025-11-27Fix a CLI test case due to a change in error message text.drh-1/+1
FossilOrigin-Name: cf45d534d63878b00d949234e81cf9c67db7d7067bbac2fd5cd1780463fcce06
2025-11-26Do not omit the beginning and ending margins when setting bBorder to QRF_Off,drh-3/+3
except when the margins need to be squeezed to fit. Those extra margins give a more pleasing appearance, and also make the output the same as psql. FossilOrigin-Name: 2892aaeed9f55ad87791491068493c2e530eeff4194d156f16745d185760797c
2025-11-26Add the bBorder option to the QRF spec. Reflect this in the -borderdrh-0/+6
option on the TCL format method, and the --border option to ".mode" in the CLI. Also add the "psql" mode to the CLI. FossilOrigin-Name: 02cbeb69884cd884d9b1b5f59c4168a3dc24b1a5aecc6967586c0be350b10574
2025-11-21Add the bWrapSnglCol flag to the QRF spec, though it is not yet documenteddrh-1/+1
and does not yet work. Fix column output so that it omits trailing space. FossilOrigin-Name: a858027fc92727c680b7e984303df7f9e0a2d90c860c547176f290b113a69390
2025-11-17The -textjsonb option is on by default in the standard non-batch mode ofdrh-0/+26
the CLI. New fast screening test for JSONB. FossilOrigin-Name: fd09f934d64ec07fd56f1b80ab05dafb28b605d5802ff5758eea17d8ad24e3cc
2025-11-17CLI comes up in legacy "list" mode if neither stdin or stdout are a tty, ordrh-7/+8
if "--compat 20251114" or earlier is specified, or if "--batch" is used. New modes "batch" and "tty" select either legacy "list" mode or the newer "qbox" mode with limits. Make CVS output compatible with legacy. Break out ".import" into a separate subroutine in anticipation of forthcoming improvements. General code cleanup. FossilOrigin-Name: f6bfcea9a01493af182e9aa0d35df6f81bf9e36220df79139afa287fa43d9aa3
2025-11-16Fix a bug in ".show". Adjust test cases for the new default mode.drh-9/+9
FossilOrigin-Name: 2aebd7bfecaaf1f75b52b05a0d3009fc0dc61289ae666d24cb4e3ddfaf251645
2025-11-16Improved --safe mode defenses. Fix a test case error.drh-2/+2
FossilOrigin-Name: eacc9db80de8baa878ebdc3a054538c8998db9a2e46720c0d8b109d62a0cac29
2025-11-14Fix various bugs and compiler warnings. All tests now passing on linux, mac,drh-2/+2
and windows. More testing needed, though. FossilOrigin-Name: 2220cb70c2f1ee30dcdf917a20feacdfcb3789433d0645fea626fd4c5cf0d099
2025-11-14Improvements to --titles handling in the .mode command. Fix shell1 testdrh-1/+1
cases having to do with quoting of NULL values in "tcl" mode. FossilOrigin-Name: 0fef770bd654b8ba8011b0bb610128058e75e8444f86c51e7ea59a6f2625a3fc
2025-11-12Continuing code cleanup. Various minor bug fixes. All legacy tests nowdrh-5/+13
pass. All planned features for ".mode" are implemented, at least at the interface level, though some features are still no-ops. FossilOrigin-Name: e5a81711d0076b447e5bd3206bc04d755a6229b9f4926f42260fcd01ecf3e5a2
2025-11-11Move the ".output" command into a separate subroutine. Enhance .output sodrh-22/+4
that it is able to capture output in a sqlite3_str object, then compare that captured output we patterns to accomplish tests. FossilOrigin-Name: ddd167044753f5215624fc9ee0e3657836c528f23a6a3e262401fd1b64cdbb21
2025-11-10Add the bTextNull field to sqlite3_qrf_spec. Use QRF to implement "tcl"drh-4/+4
mode in the CLI. FossilOrigin-Name: 2ba92320db3c16c3c91e29ea935ae92da546261f25846d242bd2dd27e0b7e032
2025-11-10Fixes to autoExplaindrh-1/+47
FossilOrigin-Name: 38e4171697057437fc9f70f8734c7f557b91da47804ff10b3d2481802377222f
2025-11-08Remove about a thousand lines of dead code from shell.c.in.drh-48/+1
FossilOrigin-Name: efbcc7decd5347e3460cc3ed62720c8c3932225dfdf92293a990c51895450906
2025-11-07Fix some problems. But there is a need to do major surgery on thedrh-15/+16
table layout algorithm, so it seems good to snapshot before proceeding. FossilOrigin-Name: 9052991a897ad12ac54476d9a370d1ad18937abc3c3fc11efcb678f21cb5ef69
2025-11-07Incremental check-in. QRF is working, but there are many test failuresdrh-13/+13
in the shell test modules. FossilOrigin-Name: de7fc9afc43d4bd5f5995832cd698633e0e7213c190fa044856c9f82512161f9
2025-10-31Fix the output of ".dump" in the CLI so that the sqlite_sequence tabledrh-2/+2
is created using correct syntax. FossilOrigin-Name: 4b9f2e1d4485ad3baf9285aa09b468469be929b18cb308f19af471d7aac66076
2025-10-30Further improvements the ".dump" command to handle corner cases.drh-0/+26
FossilOrigin-Name: cd0c77934ff32050380c2143bba7d4e6c07d5f08187cb5d5e8e7602854d1cda8
2025-10-30Fix the CLI ".dump" command so that it does not make duplicatedrh-0/+39
sqlite_sequence table entries as described in [forum:/forumpost/b1674b56ad|forum thread b1674b56ad]. FossilOrigin-Name: c833f26a6780f919551e50c67d308e96293cec8481899354411d805617481f24
2025-10-07Fix some integer overflow warnings in the base64 and base85 extensions.dan-0/+18
FossilOrigin-Name: 06b4bd2aba22c57f5a5fed606c3bee225dee6fdc13bb16cc58194040ef0d7d85
2025-09-25Convert the ShellText object in the CLI to use sqlite3_malloc64() rather thandrh-24/+24
plain malloc(). Avoid unnecessary quoting of table names in .dump output and similar. Improved detection of OOM in set_table_name(). FossilOrigin-Name: 6ce4f6dc15a575c318669051fe6590ad114b52ff3f3e260cdf7accccdd922d63
2025-09-24Rework the set_table_name() function in the CLI to use modern APIs.drh-24/+24
[forum:/forumpost/2baa4acd64|Forum post 2baa4acd64]. FossilOrigin-Name: 821cc0e421bc14a68ebaee507e38a900e0c84ff6ba7ee95bf796cad387755232
2025-03-28Correct two tests in shell1.test which were broken by the addition of new ↵stephan-0/+2
output in [0f11087b8475]. FossilOrigin-Name: 909dd0a02a967baef46c3efdca42a0ab4e15003e34ce7e9af82fce5f17213d7b
2025-03-27shell1.test: == => eqjan.nijtmans-5/+5
FossilOrigin-Name: 99fdd19193056259d84768f46519328c300976b102f1b1e0b815720df01b28d0
2025-03-11Avoid running test cases involving ANSI control characters or Unicodedrh-3/+3
on Windows in a slave interpreter, as that combination does not work. FossilOrigin-Name: f6745a7355c62ee64c08e23b795f437dd74add903b55e1255c1d03f9a811170d
2025-02-25Fix a test case that was broken when the default --escape type was changeddrh-1/+1
by the previous check-in. FossilOrigin-Name: 5f2531e068b4856db2270518c370b65cbd0c0ab5443d76f1fb1116fe9ad80296
2025-02-25Enhancements to help avoid problems in the CLI when trying display contentdrh-1/+1
that contains ANSI escape codes: (1) Add the --escape MODE option to the CLI where MODE is one of "symbol", "ascii", "off" where the default is "symbol". (2) Add the unistr() SQL function. (3) Add the unistr_quote() SQL function. (4) Add the %#Q and %#q conversions in the built-in printf. FossilOrigin-Name: e3e509ae145ee2623ac68ededa59991a97fcd28313e03f67a3890b560c5381b0