and integer datetimes are in use. Per bug report from Hubert Depesz
Lubaczewski.
Alex Hunsaker
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.118.2.12 2009/05/01 19:29:42 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.118.2.13 2009/08/18 21:23:58 tgl Exp $
*
*-------------------------------------------------------------------------
*/
break;
case DTK_MILLISEC:
+ /* avoid overflowing the fsec field */
+ tm->tm_sec += val / 1000;
+ val -= (val / 1000) * 1000;
#ifdef HAVE_INT64_TIMESTAMP
*fsec += ((val + fval) * 1000);
#else