Skip to content

New errors after switching from mysql module #3190

@forty

Description

@forty

I'm trying to upgrade a large and old codebase using the mysql module to mysql2. I managed to have things compiling (we use TS) and kind of working (yeah!)

To limit the possible number of trouble, I added

    decimalNumbers: true,
    jsonStrings: true

to my config.

Now we have lot of failing test with mostly the following errors:

  • ER_BAD_NULL_ERROR
  • ER_WARN_DATA_OUT_OF_RANGE

Those seem to be legitimate comptains but as this is tests, I don't really mind those wrong queries for now. It seems it was ignore with mysql library. Is it possible to get the same behavior with mysql2?
I suspect this has to do with sql_mode, but I could not find anything that either library would do with this parameter, so I'm a bit lost.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions