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
I have an existing application with Postgres, where boolean values are considered as TRUE/FALSE. I want to migrate it to Oracle.
Queries like Model.where(attribute: TRUE) are failing because oracle supports either 0/1 OR Y/N.
I consider changing in driver so that queries with true/false behave the same as 0/1 or Y/N.
Expected behavior
Model.where(attribute: TRUE)
It should return data.
I have an existing application with Postgres, where boolean values are considered as TRUE/FALSE. I want to migrate it to Oracle.
Queries like Model.where(attribute: TRUE) are failing because oracle supports either 0/1 OR Y/N.
I consider changing in driver so that queries with true/false behave the same as 0/1 or Y/N.
Expected behavior
Model.where(attribute: TRUE)
It should return data.
Actual behavior
Model.where(attribute: TRUE)
ActiveRecord::StatementInvalid:
OCIError: ORA-00904: "TRUE": invalid identifier:
Rails version: 5.2
The text was updated successfully, but these errors were encountered: