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