problema con transazioni su Postgres

"Andrea Veggiani" <[email protected]>
Newsgroups gmane.comp.cms.cold-fusion.devel.italian
Message-ID <[email protected]>
Ciao,

 

ho questa query dentro un CFQUERY:

 

 

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;

BEGIN TRANSACTION;

update miatabella 

      set numero = ((select MAX(numero) AS numero from miatabella where anno
= '#arguments.anno#' and sigla = #arguments.Sigla#')+1)

      where id = '#arguments.id#';

COMMIT;

 

Mi sentivo tranquillo ma è successo che sono stati generati due record che
contenevano lo stesso valore nel campo numero.

 

Cosa può essere successo?

 

Il DB è Postgrest 8.1.

 

Grazie mille per l’aiuto.

 

Ciao

Andrea
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.