You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use node-cassandra-cql in async flow control methods which add for next function argument "callback" (and hides first argument "error"):
async.waterfall([
function(callback) {
client.executeAsPrepared(select,
[param],
callback
);
},
function(result, callback) {
...
}], ...);
I got error because in Client.prototype._executeOnConnection callback called with 2 result args:
callback(err, result1, result2);
Why? Refer to documentation:
"Callback should take two arguments err and result."
The text was updated successfully, but these errors were encountered:
Didn't look into this too much but could this be similar to issue #85?
Perhaps result2 is actually the retryCount like in the execute function. The execute function also returns 3 parameters even though the documentation only states that it returns err and result.
Trying to use node-cassandra-cql in async flow control methods which add for next function argument "callback" (and hides first argument "error"):
async.waterfall([
function(callback) {
client.executeAsPrepared(select,
[param],
callback
);
},
function(result, callback) {
...
}], ...);
I got error because in Client.prototype._executeOnConnection callback called with 2 result args:
callback(err, result1, result2);
Why? Refer to documentation:
"Callback should take two arguments err and result."
The text was updated successfully, but these errors were encountered: