New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating from knex 2.3.0 to knex 2.4.2 breaks working code #5580
Comments
Disclaimer: I'm not related to the Knex project. Have you checked which is the minimum version that makes your code break? (2.4.0 vs 2.4.1 vs 2.4.2). That can help to pinpoint the cause. It also seems that you didn't link a scenario with code to reproduce the problem, only a "default" runkit, with no instructions or whatsoever (for example, the |
See #1227 |
@jukkaleh-atoz That's not my issue. Also I'm using the latest mysql2 "driver". I don't think the query has even made it to the "driver" at this point, it's blowing up while generating the query. You can see from the stack trace that it's still in knex code. |
Knex added anti sql injection checks that are very strict and partially broken. Previously working code was affected regardless of mysql driver. |
My point exactly. A minor version or patch version should not break existing code. It appears that 2.4.2 breaks existing code. Not good. |
Neither should any project use knex these days, but here we are. Knex isn't what you would call well maintained and actively developed. |
Environment
Knex version: 2.4.2
Database + version: MySQL v8
OS: Mac OS Ventura 13.2.1
@smorey2
Bug
The following code which is working with knex v2.3.0 now throws the error below after updating only the knex module to 2.4.2 in my project.
Upgrading a minor version or patch should not break working code.
database connection to MySQL or PostgreSQL, then single file example which initializes
needed data and demonstrates the problem.
Based on the stack trace I don't believe this requires a live connection in order to reproduce.
The text was updated successfully, but these errors were encountered: