Commit Graph

70 Commits

Author SHA1 Message Date
Nick Tobey 2636fa81c5 Update integration-tests/bats/sql-shell.bats
Co-authored-by: Jason Fulghum <jason@dolthub.com>
2025-08-15 16:46:22 -07:00
Nick Tobey 4eb1f6386c Add bats test for errors in the interactive shell. 2025-08-15 16:25:08 -07:00
elianddb 0ae19fd06f add no_lambda tag 2025-07-30 12:53:58 -07:00
elianddb 65e15a89f2 add miss || false 2025-07-30 12:46:21 -07:00
elianddb c1719f12bc rm expect install check in case of malformed installations 2025-07-30 12:07:36 -07:00
elianddb 05068bab6c add miss dependencies for win and comments 2025-07-30 11:29:52 -07:00
elianddb 14b4292cda add review compile-time interface check, err handling, and test cleanup 2025-07-30 11:16:11 -07:00
James Cor d9fe7eab5d Only print Query Ok results in interactive shell. (#9441) 2025-07-04 19:05:55 -07:00
Nathan Gabrielson 8ca4bf3a32 Working tests + todo message for future improvmeent 2025-06-11 20:44:55 -07:00
Nathan Gabrielson 6cfa19f130 Some more changes, suffering with expect 2025-06-11 19:04:52 -07:00
Nathan Gabrielson 8fe1eb9b8e Bats tags type 2025-05-22 13:08:07 -07:00
Nathan Gabrielson 7e41e2ddc6 Remove echo 2025-05-22 13:01:30 -07:00
Nathan Gabrielson 46ecdac992 Testing changes 2025-05-22 13:00:41 -07:00
Nathan Gabrielson 98d9763e7e Reviewed code 2025-05-22 11:51:31 -07:00
Nathan Gabrielson 38156e2b13 Fixes and small changes 2025-05-20 17:07:17 -07:00
Nathan Gabrielson 36f9b66a0e Improved testing, renamed vars 2025-05-20 17:07:17 -07:00
Nathan Gabrielson d31bee5a94 test updates 2025-05-20 17:07:17 -07:00
Nathan Gabrielson 0d40c874e4 Code cleanup, string formatting 2025-05-20 17:07:17 -07:00
Nathan Gabrielson 74da7095a9 Tests for sql-shell warnings 2025-05-20 17:07:17 -07:00
Aaron Son a20f97458a go: sqle/dprocedures: Implement operational inspection hook, dolt_thread_dump stored procedure. 2025-04-01 14:22:23 -07:00
Aaron Son 906ff580b0 go: cmd/dolt: commands/sql: Fix the displayed query time in interactive mode after a query completes.
The migration to subcontexts of the Queryist sql.Context meant that
we lost the default setting of the query start time. Restore it
in the sql command implementation itself.
2025-03-31 11:50:25 -07:00
Daylon Wilkins 762a15a011 Planbuilder Authorization changes 2024-11-04 06:28:46 -08:00
James Cor 3e2a7a61e6 fix warnings in dolt sql shell (#8150) 2024-07-26 11:43:59 -07:00
Neil Macneale IV 108081f24a Bring back original '/' support added in commit dd7071f87 2024-06-28 16:22:16 -07:00
Neil Macneale IV 07ddfecf3e Revert "Merge pull request #7940 from dolthub/macneale4/slash-cmds" (#8056)
This reverts commit dd7071f871, reversing
changes made to 02f450318c.

Reverting slash commands to fix: 
https://github.com/dolthub/dolt/issues/8050
https://github.com/dolthub/dolt/issues/8022
2024-06-24 11:32:32 -07:00
Neil Macneale IV 9cbf1ecf94 expect tests fail for the remote case. punting 2024-06-04 12:38:52 -07:00
Neil Macneale IV db653400e7 Add expect tests for sql slash commands 2024-06-04 12:12:46 -07:00
Nick Tobey 2288abefde Fix bats test. 2024-05-08 23:26:16 -07:00
Neil Macneale IV 6fe8c7ada8 Skip prompt test when remote 2024-01-05 09:12:42 -08:00
Neil Macneale IV 790f011e92 Add tests for the updating prompt 2024-01-04 16:42:01 -08:00
Aaron Son 6c5c03dffe integration-tests/bats: Small bats tests improvements for the lambda runner. 2023-12-05 15:14:00 -08:00
Aaron Son 677c553c5c integration-tests/bats: Skip some tests where we use dolt init in SQL_ENGINE=remote-engine mode. 2023-11-29 21:42:03 -08:00
jennifersp 8ea2847759 allow hyphen in db name to match its dir name (#6995) 2023-11-16 07:25:55 -08:00
Jason Fulghum d1fd6419f9 First (messy) pass at dolt dump support for ANSI_QUOTES 2023-08-01 16:32:07 -07:00
Jason Fulghum 2367808a9c dolt sql support for ANSI_QUOTES 2023-08-01 16:30:09 -07:00
Neil Macneale IV e94d0b26fb Remove mistaken insert
Co-authored-by: Jason Fulghum <jason@dolthub.com>
2023-07-18 17:14:08 -07:00
Neil Macneale IV 4e147dcd8d Verify that a prompt can be an empty string using expect 2023-07-18 15:56:43 -07:00
Neil Macneale IV 49f67c9a4f Updated sql-shell.bats tests to support running in local vs remote mode. 2023-07-08 16:35:22 -07:00
Neil Macneale IV 6538cbd2ed Remove test which assumes that passing in a arbitrary user to dolt sql is valid
Use the common bats setup in import-mysqldump.bats
2023-06-16 15:56:11 -07:00
Jason Fulghum 80bb36469c Fixing error message in test 2023-06-09 10:00:53 -07:00
Neil Macneale IV fe34fc9e7a Update sql-server.bats to reflect new behavior 2023-05-18 15:26:00 -07:00
Neil Macneale IV adae7f3bc7 Fix bats test which is not checking for '|| false' 2023-05-05 14:09:42 -07:00
Neil Macneale IV 15f60698f9 Move cli flags in bats tests to make them compliant 2023-05-05 11:46:46 -07:00
Nick Tobey dafd439886 Update error message in sql-shell.bats 2023-04-18 11:29:56 -07:00
Zach Musgrave 623f83cf27 Moved some bats tests around, and rewrote the use database tests to actually fail correctly 2023-02-27 15:45:23 -08:00
Daylon Wilkins 8aeb1c659e Removed deprecated dolt functions 2023-01-03 02:13:37 -08:00
Zach Musgrave ecb7b69bfc Fixed JSON test 2022-09-12 12:29:34 -07:00
Zach Musgrave 1c1a03e965 Fixed more tests 2022-09-12 12:25:43 -07:00
James Cor 8e9d376a0e working for shell 2022-08-15 13:26:01 -07:00
James Cor 9623166ab9 more privilege changes (#3810) 2022-07-27 17:31:57 -07:00