IDEMPIERE-422 Complete Native Sequence feature / part 1
This commit is contained in:
parent
8b1c89c1a7
commit
0b6efd26d4
|
@ -1053,7 +1053,7 @@ public class MSequence extends X_AD_Sequence
|
||||||
next_id = 1000000;
|
next_id = 1000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CConnection.get().getDatabase().createSequence(TableName+"_SEQ", 1, 0 , 99999999, next_id, trxName))
|
if(CConnection.get().getDatabase().createSequence(TableName+"_SQ", 1, 0 , 99999999, next_id, trxName))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1866,7 +1866,7 @@ public final class DB
|
||||||
|
|
||||||
if(SYSTEM_NATIVE_SEQUENCE && !adempiereSys)
|
if(SYSTEM_NATIVE_SEQUENCE && !adempiereSys)
|
||||||
{
|
{
|
||||||
int m_sequence_id = CConnection.get().getDatabase().getNextID(TableName+"_SEQ");
|
int m_sequence_id = CConnection.get().getDatabase().getNextID(TableName+"_SQ");
|
||||||
return m_sequence_id;
|
return m_sequence_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue