Closed pavelbrziak closed 9 months ago
I tried your example and after correcting a couple of issues (columns 14 and 15 require data but you were passing an empty string) the code worked as expected. Can you update your example to ensure it behaves as you expect and then supply the output when setting the environment variable PYO_DEBUG_PACKETS
to any value before running your script? I only need the one that contains the insert statement.
Closing - no further information provided
1. What versions are you using?
platform.platform: Windows-10-10.0.19045-SP0 sys.maxsize > 2**32: True platform.python_version: 3.11.3 oracledb.version: 1.3.1
Oracle DB EE: 19.0.0.0.0
2. Is it an error or a hang or a crash?
Error
3. What error(s) or behavior you are seeing?
When running insert into table using executemany, it seems that the values are not properly bound to timestamp field. Result error is: ORA-01400: cannot insert NULL into ("DB_USER"."TABLE_1"."COL_16")
Eventhough the provided dictionary contains value for COL_16, it seems that it wasn't bound.
It seems that it is a new issue, because in version oracledb.version: 1.2.2 it was inserted properly. However, I'm not able to replicate it currently for 1.2.2, since it is not possible in our environment to rollback to previous versions.
We tried to avoid this issue by using positional binding and using TO_TIMESTAMP, but the behaviour remained the same.
4. Does your application call init_oracle_client()?
No
5. Include a runnable Python script that shows the problem.
Table creation:
Python code:
Print result:
Thank you.