Closed arifjaunpur closed 6 years ago
after fixing above issue in library, got another issue
/home/mohd/app/express-test/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
TypeError: Assignment to constant variable.
at exec (/home/mohd/app/express-test/node_modules/node-querybuilder/drivers/mysql/query_exec.js:154:37)
at Query.conn.query [as _callback] (/home/mohd/app/express-test/node_modules/node-querybuilder/drivers/mysql/query_exec.js:31:17)
at Query.Sequence.end (/home/mohd/app/express-test/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24)
at Query._handleFinalResultPacket (/home/mohd/app/express-test/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
at Query.OkPacket (/home/mohd/app/express-test/node_modules/mysql/lib/protocol/sequences/Query.js:72:10)
at Protocol._parsePacket (/home/mohd/app/express-test/node_modules/mysql/lib/protocol/Protocol.js:279:23)
at Parser.write (/home/mohd/app/express-test/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/home/mohd/app/express-test/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/home/mohd/app/express-test/node_modules/mysql/lib/Connection.js:103:28)
at emitOne (events.js:116:13)
This is officially working in the v2 branch.
whenever we pass
where
condition in .update_batch(table,dataset,index[,where],callback), it throws following errorWe can see that 2 times added where clause