Skip to content

Commit 13e21c7

Browse files
committed
Merge branch 'zachmu/sql-funcs' of github.com:dolthub/go-mysql-server into zachmu/sql-funcs
2 parents 566d5e9 + 04ef5ae commit 13e21c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/expression/function/insert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (i *Insert) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
155155

156156
// Convert to 0-based indexing
157157
startIdx := p - 1
158-
158+
159159
// Handle case where position is beyond string length
160160
if startIdx >= int64(len(s)) {
161161
return s, nil
@@ -170,4 +170,4 @@ func (i *Insert) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
170170
// Build the result string
171171
result := s[:startIdx] + n + s[endIdx:]
172172
return result, nil
173-
}
173+
}

sql/expression/function/insert_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ func TestInsert(t *testing.T) {
7171
}
7272
})
7373
}
74-
}
74+
}

0 commit comments

Comments
 (0)