Procedures with multiple result tables - Very important for SAP Hana
See original GitHub issueSystem information:
- Win 10
- DBeaver 21.0.0
Connection specification:
- SAP Hana
Describe the problem you’re observing:
In SAP Hana almost all procedures have multiple output parameters of type table. When I call such like this one
CALL "PUBLIC"."GET_REMOTE_SOURCE_OBJECT_TREE" ('DATALAKE_RTDI','',?,?);
in DBeaver, the first table parameter is shown but the second is not.
While less common in other databases, it can happen there as well!
For reference, Hana Studio shows all.
My guess is, the getMoreResults() JDBC call is not used.
CallableStatement stmt = connection.prepareCall("{CALL GET_REMOTE_SOURCE_OBJECT_TREE" ('DATALAKE_RTDI','',?,?)}");
boolean moreResults = stmt.execute();
while (moreResults) {
ResultSet rs = stmt.getResultSet();
// do something
rs.close();
moreResults = stmt.getMoreResults();
}
stmt.close();
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Table Functions in SAP HANA – step by step guide - SAP Blogs
The main limitation of table function is that you can pass only single values for each input parameter, which can be very annoying,...
Read more >How to protect a HANA stored procedure against multiple ...
Hi there, I have a question about stored procedure in HANA: How to protect a HANA stored procedure against multiple concurrent executions?
Read more >Developing Procedures - SAP Help Portal
SQL queries return one result set. Procedures can return multiple result sets. Procedures can have local variables, eliminating the need to explicitly create ......
Read more >SAP HANA Performance Guide for Developers
The SAP HANA Performance Guide for Developers provides an overview of the key features and characteristics of the SAP HANA platform from a ......
Read more >Execute SQL Statements in SAP HANA Studio - SAP Help Portal
You can execute SQL statements in the SAP HANA studio using the SQL console. ... Multiple Result editors may open depending on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed:
As a bonus, fixed for DB2 (same problem):
here a simple testcase
scalar results are shown at proc2 but not at proc1