Skip to content

Commit 0950d1b

Browse files
committed
rows: implement driver.RowsColumnTypeNullable
1 parent 4f5c0b7 commit 0950d1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rows.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ func (rows *mysqlRows) Columns() []string {
167167
return columns
168168
}
169169

170+
func (rows *mysqlRows) ColumnTypeNullable(i int) (nullable, ok bool) {
171+
return rows.rs.columns[i].flags&flagNotNULL != 0, true
172+
}
173+
170174
func (rows *mysqlRows) ColumnTypeScanType(i int) reflect.Type {
171175
return rows.rs.columns[i].scanType()
172176
}

0 commit comments

Comments
 (0)