Ver Fonte

Oh Travis, why have you forsaken me (sorry dear watchers)

Arne Hormann há 11 anos atrás
pai
commit
f1ab27c68c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packets.go

+ 1 - 1
packets.go

@@ -1128,7 +1128,7 @@ func (rows *binaryRows) readRow(dest []driver.Value) error {
 			default:
 				return fmt.Errorf("Invalid TIME-packet length %d", num)
 			}
-			if decimals := rows.columns[i].decimals; decimals > 0 {
+			if decimals := rows.columns[i].decimals; decimals > 0 && decimals <= 6 {
 				result += fmt.Sprintf(".%06d", microsecs)[:1+decimals]
 			}
 			dest[i] = []byte(result)