I have created four sequences for my database, and they show in Data Dictionary. But when I am trying to get a number from thm in a query like this:
I get mistake
=== SQL Exception 1 ===
SQLState=
ErrorCode=-20170
[JDBC OpenEdge Driver]:[]-20170
User guide tells that this mistake means "Invalid reference to a sequence was used". The name of the sequence is correct, I checked this. Does anybody have any idea how this can be solved?
Thank you!
Code:
insert into Object (Id, Name, ParentId, MailingAddress) values (ObjectsSequence.nextval, 'myplace', 0, 'myplaceaddress');
I get mistake
=== SQL Exception 1 ===
SQLState=
ErrorCode=-20170
[JDBC OpenEdge Driver]:[]-20170
User guide tells that this mistake means "Invalid reference to a sequence was used". The name of the sequence is correct, I checked this. Does anybody have any idea how this can be solved?
Thank you!