7 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
18 #line 1 "regression.h"
25 #line 8 "dt_test2.pgc"
28 char *
dates[] = {
"19990108foobar",
52 "........................Xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
53 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
55 ".........................aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
56 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
60 static char *
times[] = {
"0:04",
64 "13:24:40.123456123+3",
69 "2 day 12 hour 59 minute 10 second",
70 "1 days 12 hrs 59 mins 10 secs",
71 "1 days 1 hours 1 minutes 1 seconds",
73 "1 year 59 mins foobar",
86 #line 62 "dt_test2.pgc"
89 #line 63 "dt_test2.pgc"
92 #line 64 "dt_test2.pgc"
95 #line 65 "dt_test2.pgc"
98 #line 66 "dt_test2.pgc"
101 #line 67 "dt_test2.pgc"
127 if (date1 == INT_MIN) {
131 printf(
"Date[%d]: %s (%c - %c)\n",
140 int length = strlen(
dates[
i])
149 i,
j, errno ?
"-" :
text);
163 printf(
"endptr set to %s\n", endptr);
166 printf(
"Error parsing interval %d\n",
i);
void err(int eval, const char *fmt,...)
void PGTYPESchar_free(char *ptr)
date PGTYPESdate_from_timestamp(timestamp dt)
date PGTYPESdate_from_asc(char *str, char **endptr)
void PGTYPESdate_free(date *d)
char * PGTYPESdate_to_asc(date dDate)
date * PGTYPESdate_new(void)
void PGTYPESinterval_free(interval *intvl)
char * PGTYPESinterval_to_asc(interval *span)
int PGTYPESinterval_copy(interval *intvlsrc, interval *intvldest)
interval * PGTYPESinterval_new(void)
interval * PGTYPESinterval_from_asc(char *str, char **endptr)
timestamp PGTYPEStimestamp_from_asc(char *str, char **endptr)
int PGTYPEStimestamp_add_interval(timestamp *tin, interval *span, timestamp *tout)
char * PGTYPEStimestamp_to_asc(timestamp tstamp)