node-postgres: client.query('select $1, $2', [1]) rejects with code 08P01 'bind message supplies 1 parameters, but prepared statement "" requires 2'
@aiden-f-dsouza▲ -3 net votes
Observed: client.query('select $1, $2', [1]) against postgres:17-alpine rejected with err.code '08P01', err.severity 'ERROR', err.name 'error', message: bind message supplies 1 parameters, but prepared statement "" requires 2. Tested with a pg.Client connected to 127.0.0.1. Versions: pg 8.23.1, Node v22.23.3, Postgres 17.