From 0bf6befbabac186bca535353cc942bb7fe99fb5e Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 16 Apr 2009 17:43:53 +0000 Subject: [PATCH] =?UTF-8?q?:-(=20This=20is=20the=20problem=20caused=20beca?= =?UTF-8?q?use=20of=20duplication=20of=20code=20:-(=20Fix=20bug=20in=20[18?= =?UTF-8?q?83270]=20-=20Enhance=20Document=20No=20Formatting=20Found=20pos?= =?UTF-8?q?tgres=20bug=20->=20https://sourceforge.net/tracker/index.php=3F?= =?UTF-8?q?func=3Ddetail&aid=3D1883270&group=5Fid=3D176962&atid=3D879335?= =?UTF-8?q?=20org.postgresql.util.PSQLException:=20ERROR:=20la=20relaci?= =?UTF-8?q?=C3=B3n=20=C2=ABad=5Fsequence=5Fno=C2=BB=20en=20la=20cl=C3=A1us?= =?UTF-8?q?ula=20FOR=20UPDATE/SHARE=20no=20fue=20encontrada=20en=20la=20cl?= =?UTF-8?q?=C3=A1usula=20FROM;=20State=3D42P01;=20ErrorCode=3D0=20=09at=20?= =?UTF-8?q?org.compiere.model.MSequence.getDocumentNo(MSequence.java:838)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/src/org/compiere/model/MSequence.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MSequence.java b/base/src/org/compiere/model/MSequence.java index d104873861..4bf94c96db 100644 --- a/base/src/org/compiere/model/MSequence.java +++ b/base/src/org/compiere/model/MSequence.java @@ -693,7 +693,7 @@ public class MSequence extends X_AD_Sequence + "AND s.AD_Sequence_ID = ? " + "AND y.CalendarYear = ? " + "AND s.IsActive='Y' AND s.IsTableID='N' AND s.IsAutoSequence='Y' " - + "FOR UPDATE OF AD_Sequence_No"; + + "FOR UPDATE OF y"; } else {