~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/backend/catalog/pg_aggregate.c

  • 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:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/catalog/pg_aggregate.c,v 1.101 2009/01/01 17:23:37 momjian Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/catalog/pg_aggregate.c,v 1.102 2009/06/11 14:48:55 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
180
180
 
181
181
        /*
182
182
         * Also, the return type can't be INTERNAL unless there's at least one
183
 
         * INTERNAL argument.  This is the same type-safety restriction we
184
 
         * enforce for regular functions, but at the level of aggregates.  We
185
 
         * must test this explicitly because we allow INTERNAL as the transtype.
 
183
         * INTERNAL argument.  This is the same type-safety restriction we enforce
 
184
         * for regular functions, but at the level of aggregates.  We must test
 
185
         * this explicitly because we allow INTERNAL as the transtype.
186
186
         */
187
187
        if (finaltype == INTERNALOID && !hasInternalArg)
188
188
                ereport(ERROR,
228
228
                                                          PointerGetDatum(NULL),        /* allParamTypes */
229
229
                                                          PointerGetDatum(NULL),        /* parameterModes */
230
230
                                                          PointerGetDatum(NULL),        /* parameterNames */
231
 
                                                          NIL,                                          /* parameterDefaults */
 
231
                                                          NIL,          /* parameterDefaults */
232
232
                                                          PointerGetDatum(NULL),        /* proconfig */
233
233
                                                          1,    /* procost */
234
234
                                                          0);           /* prorows */