~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-updates

« back to all changes in this revision

Viewing changes to src/backend/utils/adt/ri_triggers.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614095329-kerawur7tb6p8s71
Tags: 9.1~beta2-1
* New upstream beta release.
* Drop 03-cmsgcred-size.patch, fixed upstream.
* debian/postgresql-9.1.install: Install new pg_basebackup translations.
* debian/control: Fix the server-dev dependency to p-common to also work for
  backports.
* debian/watch: Fix for beta versions.
* debian/copyright: Add pointers to GPL and Artistic licenses for the Perl
  terms.
* debian/postgresql-9.1.preinst: Fail the package upgrade early when
  upgrading from beta-1, as the DB format changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
#define RIAttName(rel, attnum)  NameStr(*attnumAttName(rel, attnum))
85
85
#define RIAttType(rel, attnum)  attnumTypeId(rel, attnum)
86
 
#define RIAttCollation(rel, attnum)     attnumCollationId(rel, attnum)
 
86
#define RIAttCollation(rel, attnum) attnumCollationId(rel, attnum)
87
87
 
88
88
#define RI_TRIGTYPE_INSERT 1
89
89
#define RI_TRIGTYPE_UPDATE 2
3024
3024
        collname = NameStr(colltup->collname);
3025
3025
 
3026
3026
        /*
3027
 
         * We qualify the name always, for simplicity and to ensure the query
3028
 
         * is not search-path-dependent.
 
3027
         * We qualify the name always, for simplicity and to ensure the query is
 
3028
         * not search-path-dependent.
3029
3029
         */
3030
3030
        quoteOneName(onename, get_namespace_name(colltup->collnamespace));
3031
3031
        appendStringInfo(buf, " COLLATE %s", onename);
3964
3964
        }
3965
3965
 
3966
3966
        /*
3967
 
         * Apply the comparison operator.  We assume it doesn't
3968
 
         * care about collations.
 
3967
         * Apply the comparison operator.  We assume it doesn't care about
 
3968
         * collations.
3969
3969
         */
3970
3970
        return DatumGetBool(FunctionCall2(&entry->eq_opr_finfo,
3971
3971
                                                                          oldvalue, newvalue));