mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-04 11:30:14 -05:00
Update bats/sql.bats
Co-Authored-By: Daylon Wilkins <Hydrocharged@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user