usql
usql copied to clipboard
Fix substitution of quoted variables
testcli.go failed before the fix and passes after it. Also includes a fix to testcli.go itself.
Closes #505 .
Please advise if a new unit test is needed here. stmt_test.go contains tests for statement parsing (TestNextResetState) and substitution (TestVarSubstitute) but I didn't see a test for both at the same time. (I might have missed it - there are a lot of tests.)
Maybe this is where testcli.go comes in, though it took me some time to get from its failure to the root cause.