Skip to content

Commit 66d3d99

Browse files
committed
Corrected return type for RegexpLike, required for proper type conversion in doltgres
1 parent 9ce988e commit 66d3d99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/expression/function/regexp_like.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ func (r *RegexpLike) Description() string {
7777
}
7878

7979
// Type implements the sql.Expression interface.
80-
func (r *RegexpLike) Type() sql.Type { return types.Int8 }
80+
func (r *RegexpLike) Type() sql.Type {
81+
return types.Boolean
82+
}
8183

8284
// CollationCoercibility implements the interface sql.CollationCoercible.
8385
func (r *RegexpLike) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte) {

0 commit comments

Comments
 (0)