fix(mysql): set `stringifyObjects` implicitly by alumni · Pull Request #11574 · typeorm/typeorm · GitHub
Skip to content

fix(mysql): set stringifyObjects implicitly - #11574

Merged
alumni merged 1 commit into
typeorm:masterfrom
alumni:fix/mysql-stringify-objects
Jul 20, 2025
Merged

alumni merged 1 commit into
typeorm:masterfrom
alumni:fix/mysql-stringify-objects

Conversation

@alumni

@alumni alumni commented Jul 20, 2025 •

Copy link
Copy Markdown
Collaborator

Description of change

Pass stringifyObjects: true to the mysql2 client to avoid any unexpected behavior.

It should not really affect the users though, as they should send valid data to TypeORM in most scenarios, but it can be disabled by passing stringifyObjects: false in the extra connection options if needed.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links relevant issues as Fixes #00000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change

Summary by CodeRabbit

  • Chores
    • Updated MySQL connection configuration to improve connection pooling and object handling. No changes to user-facing features.

@coderabbitai

coderabbitai Bot commented Jul 20, 2025 •

Copy link
Copy Markdown
Contributor

@pkg-pr-new

pkg-pr-new Bot commented Jul 20, 2025

Copy link
Copy Markdown

typeorm-sql-js-example

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

commit: 8661a9a

@coveralls

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants