Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 5115

Table type supported by '.callproc' from python

$
0
0

We have a python script, which opens a connection to Hana DB and triggers a procedure. Short version of the script is:

 

from hdbcli import dbapi

con = dbapi.connect(HANA_HOST, int(HANA_PORT), HANA_USER, HANA_PASSWORD)

cur = con.cursor()

out = cur.callproc(PROCEDURE_NAME, (SCHEDULING_INTERVAL,'?','?'))

 

This is working fine. But till now I have not found any hints how to call a procedure having parameters, which are defined as table type.

For example: The procedure is created by

CREATE PROCEDURE PROCEDURE_NAME(IN param1_in NVARCHAR(20), OUT list_out return_list) ...;

where

CREATE TYPE return_list AS TABLE (COL1 INTEGER, COL2 NVARCHAR(256));

 

Is this also possible?

 

Thanks

Peter


Viewing all articles
Browse latest Browse all 5115

Trending Articles



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