FOR UPDATE error on postgres reported by Usman88
This commit is contained in:
parent
dada2247a1
commit
94021da928
|
@ -273,6 +273,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
USE_PROCEDURE=false;
|
USE_PROCEDURE=false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
//String selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Sequence_ID "
|
//String selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Sequence_ID "
|
||||||
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
|
//end vpj-cd e-evolution 09/02/2005 PostgreSQL
|
||||||
|
@ -285,6 +286,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
else
|
else
|
||||||
// selectSQL += " FOR UPDATE OF CurrentNext, CurrentNextSys "; //jz for update , no order by, 10.216 no need
|
// selectSQL += " FOR UPDATE OF CurrentNext, CurrentNextSys "; //jz for update , no order by, 10.216 no need
|
||||||
selectSQL += "FOR UPDATE";
|
selectSQL += "FOR UPDATE";
|
||||||
|
}
|
||||||
Connection conn = null;
|
Connection conn = null;
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
Trx trx = trxName == null ? null : Trx.get(trxName, true);
|
Trx trx = trxName == null ? null : Trx.get(trxName, true);
|
||||||
|
|
Loading…
Reference in New Issue