[CONJS-143] Array parameter escaping differ from mysql/mysql2 Created: 2020-08-18 Updated: 2020-10-13 Resolved: 2020-10-13 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | compatibility |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
javascript driver permit passing array parameters. for mysql2 and mysql, Arrays are turned into list, e.g. ['a', 'b'] turns into 'a', 'b'
mariadb handle array parameter with parenthesis , so ['a', 'b'] turns into ('a', 'b') workaround is to remove parenthesis (' |