Files
dolt/bats/sql-shell.expect
Vinai Rachakonda cf037558dd Write to root on every loop of sql shell. (#1215)
This pr fixes a problem where autocommit was not turned on for every single iteration of the shell loop.
2021-01-19 16:07:38 -05:00

21 lines
374 B
Plaintext
Executable File

#!/usr/bin/expect
set timeout 1
spawn dolt sql
set id $spawn_id
expect -i id "doltsql> "
send -i id "CREATE TABLE test_expect (pk int primary key);\r"
expect -i id "doltsql> "
# spawn the second process
spawn dolt sql
set id2 $spawn_id
# Todo: Should this be a dolt ls instead ?
expect -i id2 "doltsql> "
send -i id2 "show tables;\r"
expect -i id eof
expect -i id2 eof