Update bats/sql.bats

Co-Authored-By: Daylon Wilkins <Hydrocharged@users.noreply.github.com>
This commit is contained in:
Tim Sehn
2020-02-17 15:02:38 -08:00
committed by GitHub
parent 39380ced84
commit c2981fbb54
+1 -1
View File
@@ -402,7 +402,7 @@ teardown() {
@test "sql substr() and cast() functions" {
run dolt sql -q "select substr(cast(date_created as char), 1, 4) from has_datetimes"
[ $status -eq 0 ]
[[ "$output" =~ "2020" ]] || false
[[ "$output" =~ " 2020 " ]] || false
[[ ! "$output" =~ "17" ]] || false
}