|
18 | 18 | #include "pgtypes_date.h"
|
19 | 19 |
|
20 | 20 |
|
21 |
| -int PGTYPEStimestamp_defmt_scan(char **, char *, timestamp *, int *, int *, int *, |
| 21 | +int PGTYPEStimestamp_defmt_scan(char **, const char *, timestamp *, int *, int *, int *, |
22 | 22 | int *, int *, int *, int *);
|
23 | 23 |
|
24 | 24 | #ifdef HAVE_INT64_TIMESTAMP
|
@@ -384,12 +384,12 @@ PGTYPEStimestamp_current(timestamp * ts)
|
384 | 384 |
|
385 | 385 | static int
|
386 | 386 | dttofmtasc_replace(timestamp * ts, date dDate, int dow, struct tm * tm,
|
387 |
| - char *output, int *pstr_len, char *fmtstr) |
| 387 | + char *output, int *pstr_len, const char *fmtstr) |
388 | 388 | {
|
389 | 389 | union un_fmt_comb replace_val;
|
390 | 390 | int replace_type;
|
391 | 391 | int i;
|
392 |
| - char *p = fmtstr; |
| 392 | + const char *p = fmtstr; |
393 | 393 | char *q = output;
|
394 | 394 |
|
395 | 395 | while (*p)
|
@@ -866,7 +866,7 @@ dttofmtasc_replace(timestamp * ts, date dDate, int dow, struct tm * tm,
|
866 | 866 |
|
867 | 867 |
|
868 | 868 | int
|
869 |
| -PGTYPEStimestamp_fmt_asc(timestamp * ts, char *output, int str_len, char *fmtstr) |
| 869 | +PGTYPEStimestamp_fmt_asc(timestamp * ts, char *output, int str_len, const char *fmtstr) |
870 | 870 | {
|
871 | 871 | struct tm tm;
|
872 | 872 | fsec_t fsec;
|
@@ -894,7 +894,7 @@ PGTYPEStimestamp_sub(timestamp * ts1, timestamp * ts2, interval * iv)
|
894 | 894 | }
|
895 | 895 |
|
896 | 896 | int
|
897 |
| -PGTYPEStimestamp_defmt_asc(char *str, char *fmt, timestamp * d) |
| 897 | +PGTYPEStimestamp_defmt_asc(char *str, const char *fmt, timestamp * d) |
898 | 898 | {
|
899 | 899 | int year,
|
900 | 900 | month,
|
|
0 commit comments