Repository navigation
Conversation
There was a problem hiding this comment.
I'm sorry but it's too late in v6 to introduce breaking changes
We also require changes to be done against v7 first, then backported when possible
We plan on adding support for bind parameters on almost all queries using an option in a future update (v7+). See #11586 (comment)
|
Please note that this BC is on an internal API, nothing breaks externally.. I can also work on implementing the same change on the v7 branch. |
|
Sadly it's not very well indicated as an internal API and there is a decent chance that some people used this function directly We've been working on blocking access to internal APIs in v7, and making the query generator a public API (parts of it, at least) As a intermediary solution, what we could do is add support for the
If that works for you, I can reopen this PR. I apologize for closing it this quickly. That was disrespectful of me |
Description of Changes
When using bulk create, the generated SQL does not use bindings. This creates an issue, since the data is logged along with the running query.
With this PR, the default generated SQL for a bulk insert will use bindings by default, unless
replacementsis being used, orbindParamsis false.List of Breaking Changes
QueryGenerator.bulkInsertQuery()now returns an object with 2 properties:query(always returned) andbind(only if bind params are used)