I am issuing a query to our database, with a where clause that is comparing a Date column to a parameter. The parameter is bound to a datetime object. I am using version 5.02. Will the datetime object be sent as a native Oracle date type, or will it be sent as a string? If the latter, what format would it be in?
The reason I ask is that the DBA's think the query is not performing well, and there is concern that the optimizer is not using the index on the date column due to the way I am passing in the date.
The date parameter is being passed via a dictionary, like so:
params["p_order_date"] = orderDate.datetime() # returns a datetime type from a custom class
The query string passed to execute is built dynamically, and executed once.
Susquehanna International Group
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.