[CONJS-87] Array parameter automatic conversion Created: 2019-07-05  Updated: 2019-07-05  Resolved: 2019-07-05

Status: Closed
Project: MariaDB Connector/node.js
Component/s: compatibility
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Permit using the array parameter :
example

connection.query('SELECT * FROM arrayParam WHERE val IN ?', [['b', 'c', 1]])

resulting query send to server is then

SELECT * FROM arrayParam WHERE val IN ('b','c', 1)

(Array value are escaped according to type)


Generated at Thu Feb 08 03:22:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.