Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughParameterTuple fragment now carries itemPrefix/itemSeparator/itemSuffix; rendering wraps each placeholder with those and joins by separator. Added functional tests (case-insensitive IN/NOT IN for Attachment.fileName) and updated a CI action to v2.1.0. Changes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (5)
packages/client-engine-runtime/src/interpreter/render-query.tspackages/client-engine-runtime/src/query-plan.tspackages/client/tests/functional/issues/29215-case-insensitive-in/_matrix.tspackages/client/tests/functional/issues/29215-case-insensitive-in/prisma/_schema.tspackages/client/tests/functional/issues/29215-case-insensitive-in/tests.ts
packages/client/tests/functional/issues/29215-case-insensitive-in/tests.ts
Outdated
Show resolved
Hide resolved
packages/client/tests/functional/issues/29215-case-insensitive-in/tests.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
♻️ Duplicate comments (1)
packages/client/tests/functional/issues/29215-case-insensitive-in/tests.ts (1)
7-69: LGTM — both previously raised issues are correctly resolved:
- Provider guard:
optOutformysql/sqliteat lines 65–68 correctly excludes providers that don't supportmode: 'insensitive'.- IN test ordering:
toHaveLength(2)+arrayContainingat lines 31–37 makes the assertion order-independent.- NOT IN test: expects exactly one result, so
toEqual([...])is deterministic and safe as-is.afterEachcleanup is scoped correctly and each test uses distinct file names, ensuring isolation.
size-limit report 📦
|
|
🟢 All good, this PR is no longer uses custom engine. |
packages/client/tests/functional/issues/29215-case-insensitive-in/tests.ts
Show resolved
Hide resolved
[TML-1922](https://linear.app/prisma-company/issue/TML-1922/fix-case-insensitive-in-regression) Enables the query compiler to render tuples of parameters wrapped in function calls. Needed for properly rendering `? IN (LOWER(?), LOWER(?))`. Client PR: prisma/prisma#29243
[TML-1922](https://linear.app/prisma-company/issue/TML-1922/fix-case-insensitive-in-regression) Enables the query compiler to render tuples of parameters wrapped in function calls. Needed for properly rendering `? IN (LOWER(?), LOWER(?))`. Client PR: prisma/prisma#29243
[TML-1922](https://linear.app/prisma-company/issue/TML-1922/fix-case-insensitive-in-regression) Enables the interpreter to render tuples of parameters wrapped in function calls. Needed for properly rendering `? IN (LOWER(?), LOWER(?))`. Fixes #29215 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Parameter tuples in generated SQL now format each item with the configured prefix, separator, and suffix while remaining parenthesized. * **Tests** * Added functional tests for case-insensitive IN and NOT IN filters (matrix excludes unsupported engines). * Added dynamic test schema and updated unit tests to reflect tuple formatting. * **Chores** * CI workflow updated to use a newer action release. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
TML-1922
Enables the interpreter to render tuples of parameters wrapped in function calls. Needed for properly rendering
? IN (LOWER(?), LOWER(?)).Fixes #29215
Summary by CodeRabbit
Bug Fixes
Tests
Chores