mariadb-corporation / mariadb-connector-nodejs

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. MariaDB Connector/Node.js is LGPL licensed.
GNU Lesser General Public License v2.1
363 stars 93 forks source link

namedPlaceholder won't work #245

Closed sbscan closed 1 year ago

sbscan commented 1 year ago

Even the fallowing sample query is not working, error is: Column count doesn't match value count at row 1

await connection.query( { namedPlaceholders: true, sql: 'INSERT INTO someTable VALUES (:id, :img, :db)' }, { id: 1, img: Buffer.from('c327a97374', 'hex'), db: 'mariadb' } );

sbscan commented 1 year ago

my bad, pls delete