Reputation: 3992
I am using the EntityManager
from javax.persistence
to do some operations on a informix database. For example:
public void execute(String sql) {
Query query = entityManager.createNativeQuery(sql);
query.executeUpdate();
}
I need the SQLCODE returned by this execution. Do you have any hints for me on how to achieve this?
Edit: I found out that it is possible to use SQLCA (SQL Communication Area). Has anyone experience with that?
Upvotes: 1
Views: 157