This commit is contained in:
Nuno Cruces
2025-08-13 03:31:12 +01:00
parent 4b154a842c
commit d8880e4cee
9 changed files with 11 additions and 11 deletions

View File

@@ -740,7 +740,7 @@ func (r *rows) ColumnTypeScanType(index int) (typ reflect.Type) {
switch {
case scan == _TIME && val != _BLOB && val != _NULL:
t := r.Stmt.ColumnTime(index, r.tmRead)
useValType = t == time.Time{}
useValType = t.IsZero()
case scan == _BOOL && val == _INT:
i := r.Stmt.ColumnInt64(index)
useValType = i != 0 && i != 1