I am trying to do a fairly simply query that involves getting all the records between two dates via a specific column.
The raw SQL works fine in ISQL Firebird:
SELECT * FROM OPS_HEADER
WHERE PB_BOL_DT
BETWEEN '2020-09-01' AND '2020-09-10';
Here is my ActiveRecord Conversion:
OpsHeader.where('pb_bol_dt BETWEEN 2020-09-01 AND 2020-09-10')
This above line gives me this error:
expression evaluation not supported expression evaluation not supported Only one operand can be of type TIMESTAMP
I may be converting it wrong but it sure seems like this is the exact way to do it... I have no idea why it's giving me so much trouble.