mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Changes to the parser to accept new datatypes.
This commit is contained in:
18
src/interfaces/ecpg/include/datetime.h
Normal file
18
src/interfaces/ecpg/include/datetime.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <pgtypes_timestamp.h>
|
||||
|
||||
#ifndef dtime_t
|
||||
#define dtime_t Timestamp
|
||||
#endif /* dtime_t */
|
||||
|
||||
#ifndef intrvl_t
|
||||
#warning needs interval here
|
||||
#define intrvl_t Timestamp
|
||||
#endif /* intrvl_t */
|
||||
|
||||
extern void dtcurrent (dtime_t *);
|
||||
extern int dtcvasc (char *, dtime_t *);
|
||||
extern int dtsub (dtime_t *, dtime_t *, intrvl_t *);
|
||||
extern int dttoasc (dtime_t *, char *);
|
||||
extern int dttofmtasc (dtime_t *, char *, int, char *);
|
||||
extern int intoasc(intrvl_t *, char *);
|
||||
|
Reference in New Issue
Block a user