Cannot gettype from within package #181
-
Hello, using gettype works perfectly fine for global object types. But as soon as I'm trying to get a type from a package with Are there any known limitation when working with oracle 11g? I'm using:
fin swimmer |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
What is possible for applications to access has definitely been improved in various Oracle DB versions. Look at the examples in https://github.com/oracle/python-oracledb/blob/main/tests/test_3200_features_12_1.py - which is the "Module for testing features introduced in 12.1". It shows various type cases were additionally supported. Do these match what you are trying to do? |
Beta Was this translation helpful? Give feedback.
-
with app_state.cft_pool.cursor() as cur:
query = """
declare
INPUT Z$MYPKG.DEMORECORD;
begin
-- Call the procedure
input.NUMBERVALUE := :num;
input.STRINGVALUE := :str;
Z$ELMA_USER_LIB_BI.TEST(INPUT => INPUT);
:result := input.NUMBERVALUE || ' ' || input.STRINGVALUE;
end;
"""
res = cur.var(str)
cur.execute(query, num=6, str="Test String", result=res)
print(res.getvalue()) this worked well on Oracle 11g |
Beta Was this translation helpful? Give feedback.
What is possible for applications to access has definitely been improved in various Oracle DB versions. Look at the examples in https://github.com/oracle/python-oracledb/blob/main/tests/test_3200_features_12_1.py - which is the "Module for testing features introduced in 12.1". It shows various type cases were additionally supported. Do these match what you are trying to do?