From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sharon Cowling <sharon.cowling@sslnz.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with unique index
Date: Sun, 13 Jan 2002 15:53:16 -0500
Message-ID: <28329.1010955196@sss.pgh.pa.us> (raw)
In-Reply-To: <200201132019.g0DKJLv15052@lambton.sslnz.com>
References: <200201132019.g0DKJLv15052@lambton.sslnz.com>
Sharon Cowling <sharon.cowling@sslnz.com> writes:
> INSERT INTO person
> VALUES
> (new.person_id, new.firstname, new.lastname, new.dob, new.street, new.suburb, new.city, new.homephone, new.workphone, new.mobile, new.type, new.date_approved, new.approved_by, new.vehicle_type, new.vehicle_rego, new.notes);
This is going to insert into the first N columns of person, and if I'm
counting correctly that means "new.notes" is going to wind up in the
drivers_licence column. Perhaps you want to call out the target columns
explicitly in the INSERT command.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, sharon.cowling@sslnz.com
Subject: Re: Problem with unique index
In-Reply-To: <28329.1010955196@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox