Uploaded image for project: 'Hibernate ORM'
  1. HHH-11600

Sap HANA PreparedStatement implements CallableStatement and is treated as such by Hibernate

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 5.2.9
    • Fix versions: 5.2.11
    • Components: hibernate-core
    • Labels:
      None

      Description

      Curious enough, it looks slike SAP Hana treats a JDBC PreparedStatement like a CallableStatement:

      at com.sap.db.jdbc.CallableStatementSapDB.constructor(CallableStatementSapDB.java:215)
      at com.sap.db.jdbc.CallableStatementSapDB.<init>(CallableStatementSapDB.java:125)
      at com.sap.db.jdbc.CallableStatementSapDBFinalize.<init>(CallableStatementSapDBFinalize.java:31)
      at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1390)
      at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:347)
      

      The problem is reported in this forum thread, and is caused by org.hibernate.engine.jdbc.internal.ResultSetReturnImpl which treats the PreparedStatement as a CallableStatement which is not supported by the SAP Hana Driver.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                mih_vlad Vlad Mihalcea
                Reporter:
                mih_vlad Vlad Mihalcea
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: