mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-28 12:40:16 -05:00
Bug fix for active_branch() function
This commit is contained in:
@@ -83,7 +83,7 @@ func (*ActiveBranchFunc) Resolved() bool {
|
||||
}
|
||||
|
||||
func (cf *ActiveBranchFunc) Type() sql.Type {
|
||||
return sql.Boolean
|
||||
return sql.Text
|
||||
}
|
||||
|
||||
// Children implements the Expression interface.
|
||||
|
||||
@@ -1017,4 +1017,9 @@ SQL
|
||||
[ $status -eq 0 ]
|
||||
[[ "$output" =~ "active_branch()" ]] || false
|
||||
[[ "$output" =~ "tmp_br" ]] || false
|
||||
|
||||
run dolt sql -q 'select name from dolt_branches where name = (select active_branch())' -r csv
|
||||
[ $status -eq 0 ]
|
||||
[ "${#lines[@]}" -eq 2 ]
|
||||
[[ "$output" =~ "tmp_br" ]] || false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user