diff --git a/server/functions/left.go b/server/functions/left.go index 5a812061e2..49da1faa20 100644 --- a/server/functions/left.go +++ b/server/functions/left.go @@ -17,11 +17,11 @@ package functions // left represents the PostgreSQL function of the same name. var left = Function{ Name: "left", - Overloads: []interface{}{left_string}, + Overloads: []interface{}{left_string_int}, } // left_string is one of the overloads of left. -func left_string(string StringType, n IntegerType) (StringType, error) { +func left_string_int(string StringType, n IntegerType) (StringType, error) { if string.IsNull || n.IsNull { return StringType{IsNull: true}, nil } diff --git a/server/functions/right.go b/server/functions/right.go index 2e98a055df..0c45f609df 100644 --- a/server/functions/right.go +++ b/server/functions/right.go @@ -17,11 +17,11 @@ package functions // right represents the PostgreSQL function of the same name. var right = Function{ Name: "right", - Overloads: []interface{}{right_string}, + Overloads: []interface{}{right_string_int}, } // right_string is one of the overloads of right. -func right_string(string StringType, n IntegerType) (StringType, error) { +func right_string_int(string StringType, n IntegerType) (StringType, error) { if string.IsNull || n.IsNull { return StringType{IsNull: true}, nil } diff --git a/server/functions/split_part.go b/server/functions/split_part.go index c0aa9ead47..353e063a1f 100644 --- a/server/functions/split_part.go +++ b/server/functions/split_part.go @@ -24,11 +24,11 @@ import ( // split_part represents the PostgreSQL function of the same name. var split_part = Function{ Name: "split_part", - Overloads: []interface{}{split_part_string}, + Overloads: []interface{}{split_part_string_string_int}, } // split_part_string is one of the overloads of split_part. -func split_part_string(str StringType, delimiter StringType, n IntegerType) (StringType, error) { +func split_part_string_string_int(str StringType, delimiter StringType, n IntegerType) (StringType, error) { if str.IsNull || delimiter.IsNull || n.IsNull { return StringType{IsNull: true}, nil }