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
CREATE TABLE "NOTIFICATIONS" ("ID" NUMBER(38) NOT NULL PRIMARY KEY, "NOTIFICATION_TYPE" VARCHAR2(255) NOT NULL, "NAME" VARCHAR2(255) NOT NULL, "MESSAGE" CLOB NOT NULL, "CREATED_AT" TIMESTAMP(6) NOT NULL, "UPDATED_AT" TIMESTAMP(6) NOT NULL);
SELECT "NOTIFICATIONS".* FROM "NOTIFICATIONS" WHERE "NOTIFICATIONS"."MESSAGE" LIKE empty_clob() ORDER BY "NOTIFICATIONS"."ID" ASC OFFSET :a1 ROWS FETCH FIRST :a2 ROWS ONLY [["OFFSET", 0], ["LIMIT", 10]]
However, when I add this simple ransacker:
ransacker :message do |parent|
Arel.sql(%Q["NOTIFICATIONS"."MESSAGE"])
end
There's no issue and I get the following query:
SELECT "NOTIFICATIONS".* FROM "NOTIFICATIONS" WHERE "NOTIFICATIONS"."MESSAGE" LIKE '%A%' ORDER BY "NOTIFICATIONS"."ID" ASC OFFSET :a1 ROWS FETCH FIRST :a2 ROWS ONLY [["OFFSET", 0], ["LIMIT", 10]]
Does anyone have any idea why this is happening/necessary?
The text was updated successfully, but these errors were encountered:
I have the following table:
And the following parameters:
Generate this query in Oracle:
However, when I add this simple ransacker:
There's no issue and I get the following query:
Does anyone have any idea why this is happening/necessary?
The text was updated successfully, but these errors were encountered: