ArcadeData / arcadedb

ArcadeDB Multi-Model Database, one DBMS that supports SQL, Cypher, Gremlin, HTTP/JSON, MongoDB and Redis. ArcadeDB is a conceptual fork of OrientDB, the first Multi-Model DBMS. ArcadeDB supports Vector Embeddings.
https://arcadedb.com
Apache License 2.0
469 stars 57 forks source link

"Error on parsing bind message: null" when using node-postgres driver #1630

Open angkor-wat opened 3 weeks ago

angkor-wat commented 3 weeks ago

ArcadeDB Version:

ArcadeDB Server v23.6.1 (build 0eba746edfdf65b4a2dc483bfc5435bca397e55f/1688529756647/main)

OS and JDK Version:

Running on Linux 2.6.32-431.el6.x86_64 - Java HotSpot(TM) 64-Bit Server VM 11.0.19 (18.9)

Expected behavior

return data rows

Actual behavior

catch ERROR: Error on parsing bind message: null at d:\teamwork\portal\node_modules\pg-pool\index.js:45:11 at process.processTicksAndRejections (d:\teamwork\portal\lib\internal\process\task_queues.js:95:5) at async Object.<anonymous> (D:\teamwork\portal\app\routes\signin.js:44:21) {length: 56, name: 'error', severity: 'ERROR', code: 'XX000', detail: undefined, …}

Sample Code

const {Pool} = require("pg"); try{ const pool = new Pool({ host: 'XXX.XXX.XXX.XXX', port: 5432, password: 'XXX', user: 'root', database: 'mydb', }) const res = await pool.query('select from User where id=$1',['test']); console.log(res.rows[0]); }catch(error){ console.error(error); }