datastax/nodejs-driver — pull request #6 by caglaroner (2014-10-09 00:27:18+00:00)
Title: Fix the guess type for int

Fixing the issue with the guessing of the int type.

When a hint is not provided the int is guessed as double all the time and consequently fails.

CREATE TABLE int_fails (
id text,
fake_int int,
PRIMARY KEY ((id), fake_int)
);

var query = 'INSERT INTO int_fails (id, fake_int) VALUES (?, ?)';
var params = ['foo', 1];