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)
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!