Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Hana Table Variable as output of procedure over JDBC

$
0
0

I'm trying to use DBFit (Fitnesse) to call these stored procedures. There is a process within the DBFit code which examines the parameters for a given procedure, gets their type, and then maps this type to a java sql type.

 

It then attempts to bind the parameters to the procedure call using this information, which works for every type except for these table variables (the type returned by the DB when checking these parameters is TABLE_TYPE). The actual error is when this binding is being done, it seems. It gives an error message about a JDBC exception and an unexpected output parameter:

 

com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Internal JDBC error: output parameter at index 7 was not expected. at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:374) at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateSQLException(SQLExceptionSapDB.java:136) at com.sap.db.jdbc.CallableStatementSapDB.registerOutParameter(CallableStatementSapDB.java:1720) at com.sap.db.jdbc.CallableStatementSapDB.registerOutParameter(CallableStatementSapDB.java:1711) at com.sap.db.jdbc.trace.CallableStatement.registerOutParameter(CallableStatement.java:747) at dbfit.fixture.StatementExecution.registerOutParameter(StatementExecution.java:30) at dbfit.util.DbParameterAccessor.bindTo(DbParameterAccessor.java:77) at dbfit.util.DbParameterAccessors.bindParameters(DbParameterAccessors.java:27) at dbfit.api.DbStoredProcedureCall.bindParametersTo(DbStoredProcedureCall.java:50) at dbfit.api.DbStoredProcedureCall.toStatementExecution(DbStoredProcedureCall.java:55) at dbfit.api.DbStoredProcedure.buildPreparedStatement(DbStoredProcedure.java:27) at dbfit.fixture.DbObjectExecutionFixture.doRows(DbObjectExecutionFixture.java:74) at fit.Fixture.doTable(Fixture.java:155) at fitlibrary.traverse.AlienTraverseHandler.doTable(AlienTraverseHandler.java:18) at fitlibrary.traverse.workflow.DoTraverseInterpreter.interpretWholeTable(DoTraverseInterpreter.java:99) at fitlibrary.traverse.workflow.DoTraverseInterpreter.interpretWholeTable(DoTraverseInterpreter.java:87) at fitlibrary.DoFixture.interpretWholeTable(DoFixture.java:69) at fitlibrary.suite.InFlowPageRunner.run(InFlowPageRunner.java:34) at fitlibrary.DoFixture.interpretTables(DoFixture.java:42) at dbfit.DatabaseTest.interpretTables(DatabaseTest.java:26) at fit.Fixture.doTables(Fixture.java:80) at fit.FitServer.process(FitServer.java:81) at fit.FitServer.run(FitServer.java:56) at fit.FitServer.main(FitServer.java:41)


I don't know if anyone else is using DBFit to test Hana procedures, as it requires some custom development (it doesn't just work out of the box) so I'm not sure if this is solvable within DBFit yet.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>