-
-
Notifications
You must be signed in to change notification settings - Fork 656
Closed
Labels
Description
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!