Details
Description
on issue 2710 use of sequence was introduced in castor test framework, the test 2550 fails with follow exception:
org.exolab.castor.jdo.PersistenceException: Nested error: com.sap.dbtech.jdbc.exceptions.DatabaseException: [-3014] (at 14): Invalid end of SQL statement: [-3014] (at 14): Invalid end of SQL statement
at org.exolab.castor.jdo.engine.SQLStatementCreate.executeStatementDuringInsert(SQLStatementCreate.java:484)
it is because castor generates the follow Oracle statement for MaxDB:
CALL INSERT INTO "TEST2550_ENTITY" ("ID","NAME") VALUES ("TEST2550_ENTITY_SEQ".nextval,?) RETURNING "ID" INTO ?
this because MaxDB engine extends Oracle engine.
i post a question on SAP SDN forum to help us to solve this problem:
https://forums.sdn.sap.com/thread.jspa?threadID=1345499&tstart=0
to know how to solve this issue we must wait that answer
Patch that handles part of the problem.