~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/include/utils/date.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8
8
 * Portions Copyright (c) 1994, Regents of the University of California
9
9
 *
10
 
 * $PostgreSQL: pgsql/src/include/utils/date.h,v 1.42 2009/01/01 17:24:02 momjian Exp $
 
10
 * $PostgreSQL: pgsql/src/include/utils/date.h,v 1.43 2009/06/11 14:49:13 momjian Exp $
11
11
 *
12
12
 *-------------------------------------------------------------------------
13
13
 */
64
64
#define DateADTGetDatum(X)        Int32GetDatum(X)
65
65
#define TimeADTGetDatum(X)        Int64GetDatum(X)
66
66
#define TimeTzADTPGetDatum(X) PointerGetDatum(X)
67
 
 
68
 
#else  /* !HAVE_INT64_TIMESTAMP */
 
67
#else                                                   /* !HAVE_INT64_TIMESTAMP */
69
68
 
70
69
#define MAX_TIME_PRECISION 10
71
70
 
80
79
#define DateADTGetDatum(X)        Int32GetDatum(X)
81
80
#define TimeADTGetDatum(X)        Float8GetDatum(X)
82
81
#define TimeTzADTPGetDatum(X) PointerGetDatum(X)
83
 
 
84
82
#endif   /* HAVE_INT64_TIMESTAMP */
85
83
 
86
84
#define PG_GETARG_DATEADT(n)     DatumGetDateADT(PG_GETARG_DATUM(n))