Cluster.query using callback as second argument broken since 3.2.0

Handling of callback as second argument in cluster.query is broken since 3.2.0. The statement argument is used as callback instead options.

actually this line should be either callback = arguments[1] or callback = options.

In 3.1.3 this was correct:

Thank you @Flarna for pointing this, an issue has been created

Hey @Flarna,

Thanks for reporting this issue! We’ve resolved this for the upcoming 3.2.2 release which should be out later today.

Cheers, Bret

Hello 3.2.2 was released today and should fix the callback issue.

Thanks! Yes, seems problem is solved

1 Like