Skip to content
Discussion options

You must be logged in to vote

Sorry, it turns out the issue was operator error, and had nothing to do with run speed.

I was accidentally sending through some empty SQL queries. I haven't looked into it more yet but I think that sending an empty SQL query string causes the last query to repeat.

Edit: After looking into it more, it appears that OracleDB won't update self._statement if the statement passed in is an empty string.

Edit 2: I am an idiot. Just above where the code I was looking at was this statement in the documentation:

A reference to the statement will be retained by the cursor. If None or
the same string object is passed in again, the cursor will execute that
statement again without performing a prepare o…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@lmeerwood
Comment options

Comment options

You must be logged in to vote
6 replies
@anthony-tuininga
Comment options

@lmeerwood
Comment options

@cjbj
Comment options

@lmeerwood
Comment options

@cjbj
Comment options

Answer selected by lmeerwood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants