mirror of https://github.com/jackc/pgx.git
Correct error message
parent
871f14e43b
commit
b265fedd75
|
@ -310,7 +310,7 @@ func (scanPlanTextAnyToDateScanner) Scan(src []byte, dst any) error {
|
||||||
case "-infinity":
|
case "-infinity":
|
||||||
return scanner.ScanDate(Date{InfinityModifier: -Infinity, Valid: true})
|
return scanner.ScanDate(Date{InfinityModifier: -Infinity, Valid: true})
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("date too short")
|
return fmt.Errorf("invalid date format")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue