-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested records - value not returned in specific cases #456
Comments
We'll take a look |
I can confirm that the issue exists and know its source. A patch will be forthcoming. |
I have pushed a patch that corrects this issue and have initated a build from which you can download pre-built development wheels once it completes. You can also build from source if you prefer. If you can test your scenario and confirm the patch works as expected, that would be appreciated! |
Works well, thanks @anthony-tuininga I just found it nice to have records with all null attributes to be None, but the way it works now makes sense, it mirrors the oracle behaviour and that is probably better :) |
This was included in python-oracledb 3.1.0 which was just released. |
What versions are you using?
database: 21XE / 19c EE 19.0.0.0.0
platform.platform: macOS-15.3-arm64-arm-64bit-Mach-O
sys.maxsize > 2**32: True
platform.python_version: 3.13.0
oracledb.version: 2.5.1
Is it an error or a hang or a crash?
ERROR - incorrect behaviour of output variables (plsql records)
What error(s) or behavior you are seeing?
Depending on the definition of nested record (number of fields and their position) I get different outcomes.
Below is a runnable scripts that shows 2 failing cases which I believe should pass (for example filling a value in nested field
INNER2
should return the record from the DB and contain the fillled value, however,None
is returnedl_i_am_causing_troubles_here
field is the last field in the nested record).To see the different behaviours, comment/uncomment the different definitions of
inner_t
record.Does your application call init_oracle_client()?
NO - using thin mode
Include a runnable Python script that shows the problem.
The text was updated successfully, but these errors were encountered: