Bug fix for active_branch() function

This commit is contained in:
Zach Musgrave
2021-03-22 16:24:47 -07:00
parent ded5318fe8
commit 2c60c09503
2 changed files with 6 additions and 1 deletions
@@ -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.
+5
View File
@@ -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
}