Skip to content

Commit 6a451ae

Browse files
committed
dolphin: Add STRCMP function signature
1 parent cddb087 commit 6a451ae

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

internal/engine/dolphin/stdlib.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,9 +1473,16 @@ func defaultSchema(name string) *catalog.Schema {
14731473
ReturnType: &ast.TypeName{Name: "any"},
14741474
},
14751475
{
1476-
Name: "STRCMP",
1477-
Args: []*catalog.Argument{},
1478-
ReturnType: &ast.TypeName{Name: "any"},
1476+
Name: "STRCMP",
1477+
Args: []*catalog.Argument{
1478+
{
1479+
Type: &ast.TypeName{Name: "text"},
1480+
},
1481+
{
1482+
Type: &ast.TypeName{Name: "text"},
1483+
},
1484+
},
1485+
ReturnType: &ast.TypeName{Name: "tinyint"},
14791486
},
14801487
{
14811488
Name: "STR_TO_DATE",

0 commit comments

Comments
 (0)