]> granicus.if.org Git - postgresql/blob - src/interfaces/ecpg/include/pgtypes_interval.h
- Added Dave patch for Informix handling of numeric/int conversion.
[postgresql] / src / interfaces / ecpg / include / pgtypes_interval.h
1 #ifndef PGTYPES_INTERVAL
2 #define PGTYPES_INTERVAL
3
4 typedef struct
5 {
6 #ifdef HAVE_INT64_TIMESTAMP
7         int64           time;                   /* all time units other than months and
8                                                                  * years */
9 #else
10         double          time;                   /* all time units other than months and
11                                                                  * years */
12 #endif
13         long            month;                  /* months and years, after time for
14                                                                  * alignment */
15 } interval;
16
17 extern interval *PGTYPESinterval_from_asc(char *, char **);
18 extern char *PGTYPESinterval_to_asc(interval *);
19 extern int      PGTYPESinterval_copy(interval *, interval *);
20
21 #endif   /* PGTYPES_INTERVAL */