Skip to content

Commit b609745

Browse files
committed
Fix remaining ErrInvalidType formatting issue in table_editor.go
- Fix memory/table_editor.go:853 checkRow function - Change ErrInvalidType.New(value) to ErrInvalidType.New(fmt.Sprintf("%T", value)) - Addresses CI failures with 'invalid type: %\!s(uint16=0)' errors
1 parent b54729e commit b609745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memory/table_editor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ func checkRow(ctx *sql.Context, schema sql.Schema, row sql.Row) error {
850850
for i, value := range row {
851851
c := schema[i]
852852
if !c.Check(ctx, value) {
853-
return sql.ErrInvalidType.New(value)
853+
return sql.ErrInvalidType.New(fmt.Sprintf("%T", value))
854854
}
855855
}
856856

0 commit comments

Comments
 (0)