SELECT * FROM "accounts" WHERE "accounts"."deleted_at" IS NULL AND ((accounts.firstName LIKE %!J(string=Doe)ohn%!)(MISSING) AND (accounts.lastName = %!v(MISSING)))
With this change it generates it properly:
SELECT * FROM "accounts" WHERE "accounts"."deleted_at" IS NULL AND ((accounts.firstName LIKE %John%) AND (accounts.lastName = Doe))
Any
LIKE %%
-statement with anotherWhere
-statement is currently not properly checked. This PR resolves that.Example:
Creates the fake query:
With this change it generates it properly: