brianc / node-libpq

Simple, low level native bindings to PostgreSQL's libpq from node.js
111 stars 41 forks source link

Add check for valid parameter array #86

Closed brianc closed 2 years ago

brianc commented 2 years ago

This fixes the issue outlined in #84 by preventing non-array values being passed into C/C++ binding from the JS layer. Will modify node-pg-native & node-postgres individually to bump versions for this fix.

Ref: https://github.com/brianc/node-postgres/issues/2786 Ref: https://github.com/brianc/node-pg-native/issues/107

Also fixes memory leak from #77