terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::replace
Aborted```
The following code triggers the bug:
new mysql.Database(mysqlOpts).connect (err, server) ->
this.query('UPDATE table SET counter=counter+1 WHERE foo_id=? AND other_id=?',
[undefined, 1]
).execute (err, result) ->
console.log err, result
It seems related to the undefined argument, if it is a valid integer it is OK.
The following code triggers the bug:
It seems related to the undefined argument, if it is a valid integer it is OK.