pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Another Trad <anothertrad@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Getting more than one row in UNIQUE fields
Date: Fri, 4 Dec 2009 14:24:49 -0300
Message-ID: <af7271950912040924y6c5146bet1b043f608a764646@mail.gmail.com> (raw)

My table 'client' has the unique 'client_id'.
My test server, when I try:
select * from client where client_id = 12
My server returns 3 rows!!!!
When I try to update this client, his name for example,using my framework
(SQLAlchemy), obviously returns the error:
"Updated rowcount 3 does not match number of objects updated 1"
But the field client_id is unique and has a sequence to auto increment.

Anyone ever pass to this?

view thread (3+ messages)  latest in thread

Message-ID: <af7271950912040924y6c5146bet1b043f608a764646@mail.gmail.com>
Permalink:  ../af7271950912040924y6c5146bet1b043f608a764646@mail.gmail.com/
Also on:    postgresql.org/message-id/af7271950912040924y6c5146bet1b043f608a764646@mail.gmail.com

 · 

reply

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: anothertrad@gmail.com
  Subject: Re: Getting more than one row in UNIQUE fields
  In-Reply-To: <af7271950912040924y6c5146bet1b043f608a764646@mail.gmail.com>

* 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