forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb8cf89c
committed
Avoid unportable usage of sscanf(UINT64_FORMAT).
On Mingw, it seems that scanf() doesn't necessarily accept the same formatcodes that printf() does, and in particular it may fail to recognize %llueven though printf() does. Since configure only probes printf() behaviorwhile setting up the INT64_FORMAT macros, this means it's unsafe to usethose macros with scanf(). We had only one instance of such a codingpattern, in contrib/pg_stat_statements, so change that code to avoidthe problem.Per buildfarm warnings. Back-patch to 9.0 where the troublesome codewas introduced.Michael Paquier1 parent0266a9c commitb8cf89c
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
809 | 809 |
| |
810 | 810 |
| |
811 | 811 |
| |
812 |
| - | |
| 812 | + | |
813 | 813 |
| |
814 | 814 |
| |
815 | 815 |
| |
| |||
842 | 842 |
| |
843 | 843 |
| |
844 | 844 |
| |
845 |
| - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
846 | 854 |
| |
847 | 855 |
| |
848 | 856 |
| |
|
0 commit comments
Comments
(0)