Re: [GENERAL] ecpg-timestamp- interval problem V8.2.x

2008-04-08 Thread Tom Lane
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);

[GENERAL] ecpg-timestamp- interval problem V8.2.x

2008-04-08 Thread paul tilles
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