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