Przeglądaj źródła

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

Arne Hormann 11 lat temu
rodzic
commit
f1ab27c68c
1 zmienionych plików z 1 dodań i 1 usunięć
  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)