Open angkor-wat opened 3 weeks ago
ArcadeDB Server v23.6.1 (build 0eba746edfdf65b4a2dc483bfc5435bca397e55f/1688529756647/main)
Running on Linux 2.6.32-431.el6.x86_64 - Java HotSpot(TM) 64-Bit Server VM 11.0.19 (18.9)
return data rows
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, …}
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); }
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); }