Skip to content

fix: normalization of FindOptionsWhere for arrays and Buffers - #12577

Merged
alumni merged 2 commits into
typeorm:masterfrom
alumni:fix/12574
Jun 12, 2026
Merged

alumni merged 2 commits into
typeorm:masterfrom
alumni:fix/12574

Conversation

@alumni

@alumni alumni commented Jun 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description of change

Fixes #12574.

When invalidWhereBehavior is configured, the following things are breaking:

  • disjunctive FindOptionsWhere (array of FindOptionsWhere)
  • using any Buffer/bigint/etc in FindOptionsWhere values

This PR fixes that by recursing normalizeWhereValues only when necessary.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links a relevant issue using a closing keyword:
    Fixes #NNNN, Closes #NNNN, or Resolves #NNNN
  • There are new or updated tests validating the change (tests/**.test.ts)
  • Documentation has been updated to reflect this change (docs/docs/**.md)

@alumni
alumni requested review from gioboa and naorpeled June 11, 2026 21:32
@github-actions github-actions Bot added the linked-issue PR references an issue label Jun 11, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
  • typeorm-sql-js-example

    npm i https://pkg.pr.new/typeorm@12577
    

commit: 645ea3e

@alumni
alumni marked this pull request as ready for review June 12, 2026 16:59
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (4)

Grey Divider


Action required

1. public property name used 📘 Rule violation ≡ Correctness ⭐ New
Description
The new entity declares public: boolean, which uses a TypeScript access-modifier keyword as a
property name and is invalid/ambiguous syntax. This breaks naming conventions and can fail
compilation, preventing the new tests from running.
Code

test/functional/null-undefined-handling/entity/StoredFile.ts[R26-27]

+    @Column({ default: false })
+    public: boolean
Evidence
PR Compliance ID 1 requires consistent naming conventions for new identifiers. The added class
member public: boolean introduces an identifier that conflicts with a TypeScript keyword and is
not a convention-compliant/safe property name.

Rule 1: Consistent Naming Conventions
test/functional/null-undefined-handling/entity/StoredFile.ts[26-27]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`StoredFile` declares `public: boolean`, which collides with the TypeScript `public` modifier keyword and is not a safe identifier at the start of a class member.

## Issue Context
This is a new test entity; a syntax error here will break compilation and the new functional tests.

## Fix Focus Areas
- test/functional/null-undefined-handling/entity/StoredFile.ts[26-27]

## Implementation notes
- Rename the property to something like `isPublic`.
- If the DB column must remain named `public`, set it explicitly via `@Column({ name: "public", default: false })`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Empty criteria yields 1=1 🐞 Bug ≡ Correctness ⭐ New
Description
OrmUtils.normalizeWhereCriteria can return an empty object (or include empty OR-branches) when
invalidWhereValuesBehavior is set to ignore null/undefined, and
EntityManager.update/delete/softDelete/restore forwards the result to qb.where(). QueryBuilder
renders empty predicate groups as 1=1, which can unintentionally update/delete all rows.
Code

src/util/OrmUtils.ts[R669-684]

+        // multiple criteria are possible at the top level
+        if (!path && Array.isArray(criteria)) {
+            return criteria.map(
+                (criterion, index): ObjectLiteral =>
+                    OrmUtils.normalizeWhereCriteria(
+                        criterion,
+                        options,
+                        String(index),
+                    ),
+            )
+        }

+        const result: ObjectLiteral = {}
        for (const [key, value] of Object.entries(criteria)) {
            const propertyPath = path ? `${path}.${key}` : key
Evidence
Normalization can skip keys for ignored null/undefined values and return an empty object/branch,
which EntityManager passes into .where(...). QueryBuilder explicitly converts empty condition
arrays to 1=1, so an empty normalized criterion becomes a tautology in SQL and can widen a write
query to all rows.

src/util/OrmUtils.ts[660-721]
src/entity-manager/EntityManager.ts[861-887]
src/query-builder/QueryBuilder.ts[1667-1694]
src/query-builder/QueryBuilder.ts[1078-1096]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
When `invalidWhereValuesBehavior.null/undefined` is set to `"ignore"`, `OrmUtils.normalizeWhereCriteria()` can remove all keys from a criteria object (or from a disjunctive element in a criteria array). `EntityManager.update/delete/softDelete/restore` then calls `QueryBuilder.where()` with an empty object/branch, and QueryBuilder turns empty condition arrays into the SQL tautology `1=1`, potentially affecting all rows.

## Issue Context
This is especially dangerous for write operations (UPDATE/DELETE/RESTORE/SOFT DELETE) because it can silently widen the scope of the operation.

## Fix Focus Areas
- src/entity-manager/EntityManager.ts[861-887]
- src/entity-manager/EntityManager.ts[947-963]
- src/entity-manager/EntityManager.ts[1013-1029]
- src/entity-manager/EntityManager.ts[1064-1080]

### Suggested fix approach
- After `normalizeWhereCriteria(...)`, validate that the normalized criteria is not effectively empty:
 - If it’s an array: drop empty object elements; if the array becomes empty, reject with the same error used for empty criteria.
 - If it’s an object: if it has no keys, reject.
- This keeps `invalidWhereValuesBehavior: "ignore"` from turning `where` into a tautology.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Wrong array equality assertion 🐞 Bug ≡ Correctness
Description
The new test uses expect(array).to.equal([...]), which checks reference equality for arrays, so it
will fail even if the returned titles match. This makes CI fail and undermines the added coverage
for findBy(where[]) disjunctive criteria.
Code

test/functional/null-undefined-handling/find-options.test.ts[R721-724]

+                    expect(posts.map((post) => post.title)).to.equal([
+                        "Post #1",
+                        "Post #2",
+                    ])
Evidence
The test currently uses to.equal([...]) for an array result, while other tests in this repo use
to.deep.equal([...]) for array comparisons.

test/functional/null-undefined-handling/find-options.test.ts[709-725]
test/functional/cube/postgres/cube-postgres.test.ts[156-158]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A new test compares arrays using Chai `to.equal`, which checks object identity (reference) for arrays, not deep structural equality. This will fail even when the array contents are correct.
### Issue Context
This is in the newly added test validating `findBy([...])` behavior.
### Fix Focus Areas
- test/functional/null-undefined-handling/find-options.test.ts[709-726]
### Suggested change
Replace:
- `expect(posts.map(...)).to.equal(["Post #1", "Post #2"])`
With one of:
- `expect(posts.map(...)).to.deep.equal(["Post #1", "Post #2"])` **after sorting** both arrays, e.g.:
- `expect(posts.map(p => p.title).sort()).to.deep.equal(["Post #1","Post #2"].sort())`
Or:
- `expect(posts.map(...)).to.have.members(["Post #1", "Post #2"])` plus an explicit length assertion.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

4. parameter-types tests misnamed 📘 Rule violation ⚙ Maintainability
Description
In parameter-types.test.ts, three newly added it() blocks share the same description string
(should correctly use Buffer values in find options) even though they validate different parameter
types (Buffer, bigint, boolean), making the tests misleading, noisy, and harder to debug. This
creates inconsistent style/copy-paste slop that reduces maintainability and obscures which scenario
failed when the suite breaks.
Code

test/functional/null-undefined-handling/parameter-types.test.ts[R56-99]

+    it("should correctly use Buffer values in find options", () =>
+        Promise.all(
+            dataSources.map(async (dataSource) => {
+                const fileRepository = dataSource.getRepository(StoredFile)
+
+                const fileFoundByBuffer = await fileRepository.findOneBy({
+                    guid: Buffer.from(
+                        "1234567890abcdef1234567890abcdef",
+                        "hex",
+                    ),
+                })
+                expect(fileFoundByBuffer).to.contain({
+                    name: "file1.txt",
+                })
+            }),
+        ))
+
+    it("should correctly use Buffer values in find options", () =>
+        Promise.all(
+            dataSources.map(async (dataSource) => {
+                const fileRepository = dataSource.getRepository(StoredFile)
+
+                const fileFoundByBigInt = await fileRepository.findOneBy({
+                    size: 9007199254740995n,
+                })
+                expect(fileFoundByBigInt).to.contain({
+                    name: "file2.txt",
+                })
+            }),
+        ))
+
+    it("should correctly use Buffer values in find options", () =>
+        Promise.all(
+            dataSources.map(async (dataSource) => {
+                const fileRepository = dataSource.getRepository(StoredFile)
+
+                const fileFoundByBoolean = await fileRepository.findOneBy({
+                    public: true,
+                })
+                expect(fileFoundByBoolean).to.contain({
+                    name: "file1.txt",
+                })
+            }),
+        ))
Evidence
The cited changes show three separate it(...) test cases using the exact same title text while
each test exercises a different query field/type (Buffer vs bigint vs boolean) under
invalidWhereValuesBehavior configuration; this mismatch between name and behavior demonstrates
copy/paste noise and makes failures ambiguous. Because the rule requires avoiding AI-like noise and
inconsistent style in new code, the repeated, misleading it() descriptions directly violate that
expectation.

Rule 4: Remove AI-generated noise
test/functional/null-undefined-handling/parameter-types.test.ts[56-99]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
In `test/functional/null-undefined-handling/parameter-types.test.ts`, multiple `it()` test cases have duplicated and misleading descriptions (all mention Buffer) even though the assertions cover distinct scenarios for Buffer, bigint, and boolean.
## Issue Context
This file adds/updates coverage for different parameter types (Buffer, bigint, boolean) when `invalidWhereValuesBehavior` is configured, but the repeated `it()` title text reads like copy/paste noise and makes it difficult to identify which scenario failed, conflicting with the repo’s requirement to avoid AI-generated slop/inconsistent style.
## Fix Focus Areas
- test/functional/null-undefined-handling/parameter-types.test.ts[56-99]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. invalidWhereValuesBehavior docs miss arrays 📘 Rule violation ⚙ Maintainability
Description
The PR changes user-visible behavior by allowing invalidWhereValuesBehavior to work with top-level
array/disjunctive FindOptionsWhere criteria, but the docs for invalidWhereValuesBehavior don’t
mention this supported form. Users relying on docs may assume arrays are unsupported or may not
realize this fix exists.
Code

src/util/OrmUtils.ts[R669-678]

+        // multiple criteria are possible at the top level
+        if (!path && Array.isArray(criteria)) {
+            return criteria.map(
+                (criterion, index): ObjectLiteral =>
+                    OrmUtils.normalizeWhereCriteria(
+                        criterion,
+                        options,
+                        String(index),
+                    ),
+            )
Evidence
OrmUtils.normalizeWhereCriteria now normalizes top-level array criteria when
invalidWhereValuesBehavior is provided, which is a user-facing behavior change for find APIs. The
existing invalidWhereValuesBehavior docs describe null/undefined handling but do not document the
array/disjunctive criteria form that is now explicitly supported.

Rule 2: Docs updated for user-facing changes
src/util/OrmUtils.ts[660-679]
docs/docs/data-source/5-null-and-undefined-handling.md[7-56]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Docs for `invalidWhereValuesBehavior` do not mention that disjunctive/top-level array `FindOptionsWhere` is supported (and now normalized correctly).
## Issue Context
`OrmUtils.normalizeWhereCriteria` now explicitly handles array criteria at the top level when `invalidWhereValuesBehavior` is configured.
## Fix Focus Areas
- docs/docs/data-source/5-null-and-undefined-handling.md[7-56]
- docs/docs/data-source/2-data-source-options.md[75-95]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. Noisy comments in StoredFile 📘 Rule violation ⚙ Maintainability
Description
The new test entity adds informal/explanatory comments (including grammatical issues) that don’t
match typical concise test-fixture style. This can be treated as AI-generated/noise per the
checklist and should be tightened or removed.
Code

test/functional/null-undefined-handling/entity/StoredFile.ts[R15-23]

+    // Buffer is created as a blob column by default, but we want a short binary
+    @PrimaryColumn("varbinary", { length: 16 })
+    guid: Buffer
+
+    @Column()
+    name: string
+
+    // the driver return strings for bigint values, so we need to transform them to bigint
+    @Column("bigint", { transformer: bigintTransformer })
Evidence
The checklist disallows adding AI-like/noise content, including extra comments or style
inconsistencies. The added comments in StoredFile are informal and contain grammatical issues,
making them candidates for removal or tightening.

Rule 4: Remove AI-generated noise
test/functional/null-undefined-handling/entity/StoredFile.ts[15-23]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
New comments in `StoredFile` are noisy/informal and include grammar issues (e.g. `the driver return ...`).
## Issue Context
Compliance requires avoiding AI-like/noisy additions and keeping style consistent, especially in test fixtures.
## Fix Focus Areas
- test/functional/null-undefined-handling/entity/StoredFile.ts[15-23]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

  • Author self-review: I have reviewed the code review findings, and addressed the relevant ones.

Previous review results

Review updated until commit 645ea3e

Results up to commit 7af3830


🐞 Bugs (1) 📘 Rule violations (1)


Action required
1. Wrong array equality assertion 🐞 Bug ≡ Correctness
Description
The new test uses expect(array).to.equal([...]), which checks reference equality for arrays, so it
will fail even if the returned titles match. This makes CI fail and undermines the added coverage
for findBy(where[]) disjunctive criteria.
Code

test/functional/null-undefined-handling/find-options.test.ts[R721-724]

+                    expect(posts.map((post) => post.title)).to.equal([
+                        "Post #1",
+                        "Post #2",
+                    ])
Evidence
The test currently uses to.equal([...]) for an array result, while other tests in this repo use
to.deep.equal([...]) for array comparisons.

test/functional/null-undefined-handling/find-options.test.ts[709-725]
test/functional/cube/postgres/cube-postgres.test.ts[156-158]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
A new test compares arrays using Chai `to.equal`, which checks object identity (reference) for arrays, not deep structural equality. This will fail even when the array contents are correct.

### Issue Context
This is in the newly added test validating `findBy([...])` behavior.

### Fix Focus Areas
- test/functional/null-undefined-handling/find-options.test.ts[709-726]

### Suggested change
Replace:
- `expect(posts.map(...)).to.equal(["Post #1", "Post #2"])`

With one of:
- `expect(posts.map(...)).to.deep.equal(["Post #1", "Post #2"])` **after sorting** both arrays, e.g.:
 - `expect(posts.map(p => p.title).sort()).to.deep.equal(["Post #1","Post #2"].sort())`

Or:
- `expect(posts.map(...)).to.have.members(["Post #1", "Post #2"])` plus an explicit length assertion.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended
2. parameter-types tests misnamed 📘 Rule violation ⚙ Maintainability
Description
In parameter-types.test.ts, three newly added it() blocks share the same description string
(should correctly use Buffer values in find options) even though they validate different parameter
types (Buffer, bigint, boolean), making the tests misleading, noisy, and harder to debug. This
creates inconsistent style/copy-paste slop that reduces maintainability and obscures which scenario
failed when the suite breaks.
Code

test/functional/null-undefined-handling/parameter-types.test.ts[R56-99]

+    it("should correctly use Buffer values in find options", () =>
+        Promise.all(
+            dataSources.map(async (dataSource) => {
+                const fileRepository = dataSource.getRepository(StoredFile)
+
+                const fileFoundByBuffer = await fileRepository.findOneBy({
+                    guid: Buffer.from(
+                        "1234567890abcdef1234567890abcdef",
+                        "hex",
+                    ),
+                })
+                expect(fileFoundByBuffer).to.contain({
+                    name: "file1.txt",
+                })
+            }),
+        ))
+
+    it("should correctly use Buffer values in find options", () =>
+        Promise.all(
+            dataSources.map(async (dataSource) => {
+                const fileRepository = dataSource.getRepository(StoredFile)
+
+                const fileFoundByBigInt = await fileRepository.findOneBy({
+                    size: 9007199254740995n,
+                })
+                expect(fileFoundByBigInt).to.contain({
+                    name: "file2.txt",
+                })
+            }),
+        ))
+
+    it("should correctly use Buffer values in find options", () =>
+        Promise.all(
+            dataSources.map(async (dataSource) => {
+                const fileRepository = dataSource.getRepository(StoredFile)
+
+                const fileFoundByBoolean = await fileRepository.findOneBy({
+                    public: true,
+                })
+                expect(fileFoundByBoolean).to.contain({
+                    name: "file1.txt",
+                })
+            }),
+        ))
Evidence
The cited changes show three separate it(...) test cases using the exact same title text while
each test exercises a different query field/type (Buffer vs bigint vs boolean) under
invalidWhereValuesBehavior configuration; this mismatch between name and behavior demonstrates
copy/paste noise and makes failures ambiguous. Because the rule requires avoiding AI-like noise and
inconsistent style in new code, the repeated, misleading it() descriptions directly violate that
expectation.

Rule 4: Remove AI-generated noise
test/functional/null-undefined-handling/parameter-types.test.ts[56-99]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
In `test/functional/null-undefined-handling/parameter-types.test.ts`, multiple `it()` test cases have duplicated and misleading descriptions (all mention Buffer) even though the assertions cover distinct scenarios for Buffer, bigint, and boolean.

## Issue Context
This file adds/updates coverage for different parameter types (Buffer, bigint, boolean) when `invalidWhereValuesBehavior` is configured, but the repeated `it()` title text reads like copy/paste noise and makes it difficult to identify which scenario failed, conflicting with the repo’s requirement to avoid AI-generated slop/inconsistent style.

## Fix Focus Areas
- test/functional/null-undefined-handling/parameter-types.test.ts[56-99]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (2)

Grey Divider


Action required

1. Wrong array equality assertion 🐞 Bug ≡ Correctness
Description
The new test compares arrays with expect(...).to.equal([...]), which checks reference identity and
will always fail even if contents match. It also assumes a stable result order for an OR-based
findBy([...]) without an explicit order, which can be nondeterministic across drivers.
Code

test/functional/null-undefined-handling/find-options.test.ts[R709-725]

+        it("should handle array FindOptionsWhere values correctly", () =>
+            Promise.all(
+                dataSources.map(async (dataSource) => {
+                    await prepareData(dataSource)
+
+                    const posts = await dataSource
+                        .getRepository(Post)
+                        .findBy([
+                            { title: "Post #1" },
+                            { category: { name: "Category #1" } },
+                        ])
+
+                    expect(posts.map((post) => post.title)).to.equal([
+                        "Post #1",
+                        "Post #2",
+                    ])
+                }),
Evidence
The test uses Chai to.equal against a new array literal, which compares object identity rather
than array contents; and the query does not specify an order, so relying on a specific order is
unsafe.

test/functional/null-undefined-handling/find-options.test.ts[709-725]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
A new test asserts array equality using `to.equal` (reference equality) and also assumes a deterministic row ordering without specifying an `order`. This makes the test fail (and/or be flaky across drivers).

### Issue Context
Chai's `equal` does not perform deep equality for arrays. Additionally, SQL result ordering is not guaranteed unless an explicit `ORDER BY` is used.

### Fix Focus Areas
- test/functional/null-undefined-handling/find-options.test.ts[709-725]

### Suggested fix
Replace:
- `expect(posts.map(...)).to.equal(["Post #1", "Post #2"])`

With one of:
- Order-insensitive: `expect(posts.map(...)).to.have.members(["Post #1", "Post #2"])`
- Or deterministic: sort first and use deep equality:
 - `expect(posts.map(...).sort()).to.deep.equal(["Post #1", "Post #2"].sort())`
- Or add explicit `order` to the query and then use `to.deep.equal(...)`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. invalidWhereValuesBehavior docs miss arrays 📘 Rule violation ⚙ Maintainability
Description
The PR changes user-visible behavior by allowing invalidWhereValuesBehavior to work with top-level
array/disjunctive FindOptionsWhere criteria, but the docs for invalidWhereValuesBehavior don’t
mention this supported form. Users relying on docs may assume arrays are unsupported or may not
realize this fix exists.
Code

src/util/OrmUtils.ts[R669-678]

+        // multiple criteria are possible at the top level
+        if (!path && Array.isArray(criteria)) {
+            return criteria.map(
+                (criterion, index): ObjectLiteral =>
+                    OrmUtils.normalizeWhereCriteria(
+                        criterion,
+                        options,
+                        String(index),
+                    ),
+            )
Evidence
OrmUtils.normalizeWhereCriteria now normalizes top-level array criteria when
invalidWhereValuesBehavior is provided, which is a user-facing behavior change for find APIs. The
existing invalidWhereValuesBehavior docs describe null/undefined handling but do not document the
array/disjunctive criteria form that is now explicitly supported.

Rule 2: Docs updated for user-facing changes
src/util/OrmUtils.ts[660-679]
docs/docs/data-source/5-null-and-undefined-handling.md[7-56]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Docs for `invalidWhereValuesBehavior` do not mention that disjunctive/top-level array `FindOptionsWhere` is supported (and now normalized correctly).

## Issue Context
`OrmUtils.normalizeWhereCriteria` now explicitly handles array criteria at the top level when `invalidWhereValuesBehavior` is configured.

## Fix Focus Areas
- docs/docs/data-source/5-null-and-undefined-handling.md[7-56]
- docs/docs/data-source/2-data-source-options.md[75-95]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Noisy comments in StoredFile 📘 Rule violation ⚙ Maintainability
Description
The new test entity adds informal/explanatory comments (including grammatical issues) that don’t
match typical concise test-fixture style. This can be treated as AI-generated/noise per the
checklist and should be tightened or removed.
Code

test/functional/null-undefined-handling/entity/StoredFile.ts[R15-23]

+    // Buffer is created as a blob column by default, but we want a short binary
+    @PrimaryColumn("varbinary", { length: 16 })
+    guid: Buffer
+
+    @Column()
+    name: string
+
+    // the driver return strings for bigint values, so we need to transform them to bigint
+    @Column("bigint", { transformer: bigintTransformer })
Evidence
The checklist disallows adding AI-like/noise content, including extra comments or style
inconsistencies. The added comments in StoredFile are informal and contain grammatical issues,
making them candidates for removal or tightening.

Rule 4: Remove AI-generated noise
test/functional/null-undefined-handling/entity/StoredFile.ts[15-23]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
New comments in `StoredFile` are noisy/informal and include grammar issues (e.g. `the driver return ...`).

## Issue Context
Compliance requires avoiding AI-like/noisy additions and keeping style consistent, especially in test fixtures.

## Fix Focus Areas
- test/functional/null-undefined-handling/entity/StoredFile.ts[15-23]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

  • Author self-review: I have reviewed the code review findings, and addressed the relevant ones.

Qodo Logo

@alumni
alumni merged commit a8173fc into typeorm:master Jun 12, 2026
84 of 86 checks passed
@github-actions github-actions Bot added this to the 1.0 milestone Jun 12, 2026
alumni added a commit that referenced this pull request Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Buffer and Array parameters are not passed correctly to the DB clients when invalidWhereValuesBehavior is enabled

3 participants