Tom Lane <[EMAIL PROTECTED]> writes:

> Greg Stark <[EMAIL PROTECTED]> writes:
> > Now I'm getting
> > timestamp.c: In function `tm2timestamp':
> > timestamp.c:69: warning: implicit declaration of function `elog'
> > timestamp.c:69: `ERROR' undeclared (first use in this function)
> > I assume this is expected due to the error handling changes?
> 
> No, not if it's the backend's timestamp.c.  If it's ecpg's, you'll
> need to complain to Michael about it ...

Oops, sorry I didn't realize i had cut the file location. It's ECPG's.

#ifdef HAVE_INT64_TIMESTAMP
        *result = ((date * INT64CONST(86400000000)) + time);
        if ((*result < 0 && date >= 0) || (*result >= 0 && date < 0))
                elog(ERROR, "TIMESTAMP out of range '%04d-%02d-%02d'",
                        tm->tm_year, tm->tm_mon, tm->tm_mday);
#else
        *result = ((date * 86400) + time);
#endif

-- 
greg


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

Reply via email to