Replies: 1 comment
-
As far as I am aware there is no way to do so. You must use PL/SQL to access constants defined in PL/SQL packages. So the "awkward" way you noted at the end of your question is the only way possible at the moment. It would be possible, however, to create a special object ( bar_const = oracledb.PlsqlConstant("foo_pkg.g_bar")
cur.callproc("foo_pkg.some_proc", [5, bar_const, "Some string"]) If that sounds like a good idea to you, log an enhancement request and we'll consider it further. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I access
foo_pkg.g_bar
from Python?I've tried the following:
The following works, but I would have thought that there would be a more straightforward way:
Of course we can create a function that returns it, but I would rather just access the global package constant directly if possible.
Beta Was this translation helpful? Give feedback.
All reactions