Skip to content

Commit c58181e

Browse files
author
James Cor
committed
fix nulls
1 parent 6609a39 commit c58181e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/handler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,10 @@ func RowValueToSQLValues(ctx *sql.Context, sch sql.Schema, row sql.ValueRow, buf
11811181
// TODO: remove this check once all Types implement this
11821182
valType, ok := col.Type.(sql.Type2)
11831183
if !ok {
1184+
if row[i].IsNull() {
1185+
outVals[i] = sqltypes.NULL
1186+
continue
1187+
}
11841188
outVals[i] = sqltypes.MakeTrusted(row[i].Typ, row[i].Val)
11851189
continue
11861190
}

0 commit comments

Comments
 (0)