FOR UPDATE error on postgres reported by Usman88

This commit is contained in:
Carlos Ruiz 2006-12-11 07:14:21 +00:00
parent dada2247a1
commit 94021da928
1 changed files with 14 additions and 12 deletions

View File

@ -273,6 +273,7 @@ public class MSequence extends X_AD_Sequence
USE_PROCEDURE=false;
}
else
{
//String selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Sequence_ID "
selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Sequence_ID "
//end vpj-cd e-evolution 09/02/2005 PostgreSQL
@ -285,6 +286,7 @@ public class MSequence extends X_AD_Sequence
else
// selectSQL += " FOR UPDATE OF CurrentNext, CurrentNextSys "; //jz for update , no order by, 10.216 no need
selectSQL += "FOR UPDATE";
}
Connection conn = null;
PreparedStatement pstmt = null;
Trx trx = trxName == null ? null : Trx.get(trxName, true);