From 0ed7c1a7a9c149f388caa259b9c327651cf70d24 Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Thu, 28 Sep 2023 03:50:21 +0100 Subject: Correct position of tablename refreshing --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 492a14e..6e89895 100644 --- a/main.go +++ b/main.go @@ -16,6 +16,7 @@ func main() { var args []string var noninteractive bool var err error + var tables = ReadTableNames() if len(os.Args) > 1 { noninteractive = true @@ -51,7 +52,6 @@ Running debby with any other arguments will run it as a dolt command.` // Menu loop. 1. Run query 2. Edit a table 3. Execute Dolt command 4. Exit for { - tables := ReadTableNames() // Execute choice switch choice { @@ -79,7 +79,7 @@ Running debby with any other arguments will run it as a dolt command.` // Exit return } - + tables = ReadTableNames() // Refresh table names // If noninteractive, exit if noninteractive { return -- cgit v1.2.3-70-g09d2