paul tilles <[EMAIL PROTECTED]> writes:
> {
> timestamp dt1st, dt2nd;
> interval *int_day, *int_pt;
> char timebeg[40];
> char timeend[40];
> int rc;
> strcpy(timebeg,"2008-04-01");
> strcpy(timeend,"2008-04-05");
> printf("timebeg: %s\n", timebeg);
> printf("timeend: %s\n", timeend);
A colleague of mine is working with the following code (postgres Version
8.2.4):
#include
#include
#include "pgtypes_timestamp.h"
#include "pgtypes_interval.h"
EXEC SQL INCLUDE sqlca;
main(argc, argv)
int argc;
char *argv[];
{
timestamp dt1st, dt2nd;
interval *int_day, *int_pt;
char tim