Skip to content

Commit dba0294

Browse files
committed
Merge branch 'main' of github.com:dolthub/go-mysql-server into elianddb/9325-support-oct-function
2 parents 9cf0f6d + d38e0af commit dba0294

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

enginetest/queries/json_table_queries.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ var JSONTableQueryTests = []QueryTest{
139139
{9},
140140
},
141141
},
142+
{
143+
Query: "select * from json_table('[\"foo\", \"bar\"]', \"$[*]\" columns(tag text path '$')) as tags where tag like 'foo';",
144+
Expected: []sql.Row{
145+
{"foo"},
146+
},
147+
},
142148
}
143149

144150
var JSONTableScriptTests = []ScriptTest{

sql/expression/like.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ func (l *Like) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
120120
if err != nil {
121121
return nil, err
122122
}
123-
if lm.collation == sql.Collation_Unspecified {
124-
return false, nil
125-
}
126123

127124
ok := lm.Match(left.(string))
128125
if l.cached {

0 commit comments

Comments
 (0)