node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

namedPlaceholders cannot be disabled at query level

Open wellwelwel opened this issue 11 months ago • 0 comments

  • As reported in #2472

When setting namedPlaceholders globally (connection level) to true, it's not possible to disable it at the query level.


To reproduce, just uncomment this test:

https://github.com/sidorares/node-mysql2/blob/41d21ebc9bcb47df9fc84f1f37da357fd77ba5a7/test/esm/integration/named-placeholders.test.mjs#L18-L29


The opposite will work fine:

https://github.com/sidorares/node-mysql2/blob/41d21ebc9bcb47df9fc84f1f37da357fd77ba5a7/test/esm/integration/named-placeholders.test.mjs#L31-L44

wellwelwel avatar Mar 06 '24 03:03 wellwelwel