Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan committed Jun 28, 2024
1 parent 9515496 commit 4aa6a9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sqllogictest/src/substitution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Substitution {
.replace("$__TEST_DIR__", &self.test_dir())
.replace("$__NOW__", &self.now()))
} else {
subst::substitute(&input, self).map_err(SubstError)
subst::substitute(input, self).map_err(SubstError)
}
}

Expand Down
5 changes: 2 additions & 3 deletions tests/system_command/system_command.slt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
control substitution on

system ok
echo 114514 > ${__TEST_DIR__}/test.txt
echo 114514 > $__TEST_DIR__/test.txt

query T
select read("${__TEST_DIR__}/test.txt")
Expand All @@ -23,10 +23,9 @@ echo "114514"
114514


# Note: when substitution is on, we need to escape the backslash
# Note: 1 blank line in the middle is ok, but not 2
system ok
echo "114\\n\\n514"
echo "114\n\n514"
----
114

Expand Down

0 comments on commit 4aa6a9a

Please sign in to comment.