rodhoward / node-sybase

23 stars 55 forks source link

Version 1.2.2 throws an "encoding is not defined" error. #31

Closed gustavocipriani closed 3 years ago

gustavocipriani commented 3 years ago

This is how I am instancing Sybase (works for 1.2.1): let db = new this.Sybase(this.host, this.port, this.dbName, this.username, this.pw, true, this.javaJarPath);

But in 1.2.2, I'm getting this error.

D:\workspace\mysybaseproject\dist\node_modules\sybase\src\SybaseDB.js:55 that.javaDB.stdout.setEncoding(encoding).pipe(that.jsonParser).on("data", function(jsonMsg) { that.onSQLResponse.call(that, jsonMsg); }); ^ ReferenceError: encoding is not defined at Socket. (D:\workspace\mysybaseproject\dist\node_modules\sybase\src\SybaseDB.js:55:34)

Thanks!

rodhoward commented 3 years ago

Thanks sorry about that Ill take a look today

rodhoward commented 3 years ago

Should be fixed.