Skip to content

fix: remove force generator specific optons to mysql2 pool#753

Draft
warisniz02 wants to merge 1 commit intoloopbackio:masterfrom
warisniz02:fix/remove-force-option
Draft

fix: remove force generator specific optons to mysql2 pool#753
warisniz02 wants to merge 1 commit intoloopbackio:masterfrom
warisniz02:fix/remove-force-option

Conversation

@warisniz02
Copy link

@warisniz02 warisniz02 commented Mar 8, 2026

Fix following warning

Ignoring invalid configuration option passed to Connection: force. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection

This warning occurs because --force flag, which is automatically attached to lb4 discover command by default, gets passed down through the datasource settings to mysql2 which doesn't recognize it as a valid MySQL connection option.

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines
Signed-off-by: warisniz02 <warisniz02@gmail.com>
@warisniz02 warisniz02 marked this pull request as draft March 8, 2026 20:04
@warisniz02
Copy link
Author

Hi @aaqilniz . Have a look!!

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

Labels

None yet

1 participant