You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing an SQL statement that includes time formatting (HH24:MI:SS) and uses bind variables, cx_Oracle mistakenly interprets the colons in the time format as part of the bind variables, leading to errors in SQL execution. How can this issue be addressed to correctly handle time formats in SQL statements without compromising the use of bind variables?
UPDATE TAB
SET START_TIME = TO_DATE(:delay_date, 'YYYY-MM-DD HH24:MI:SS'),
LAST_EDIT_DATE =SYSDATE,
LAST_EDIT_BY = :name WHERE ID = :id
and did not get any errors. I also tried it with python-oracledb, the replacement for cx_Oracle, and didn't run into any errors there, either. Can you try this script?
and did not get any errors. I also tried it with python-oracledb, the replacement for cx_Oracle, and didn't run into any errors there, either. Can you try this script?
I apologize, it might have been due to my spelling mistake. In subsequent usage, I indeed haven't encountered a similar situation again.
cx_Oracle version: 8.3.0
When executing an SQL statement that includes time formatting (HH24:MI:SS) and uses bind variables, cx_Oracle mistakenly interprets the colons in the time format as part of the bind variables, leading to errors in SQL execution. How can this issue be addressed to correctly handle time formats in SQL statements without compromising the use of bind variables?
The text was updated successfully, but these errors were encountered: