racker/node-cassandra-client — Issue #14: Insert fails when a key already exists
Author: peters
Created: 2012-01-30 22:50:16+00:00
State: open

Hi,

If you try to insert a record using an existing KEY, the driver throws
an exception.

```javascript
con.execute("INSERT INTO Standard1 ('KEY', 'col0') VALUES(?,?)", ['test', 'hi'], function(err) {
TypeError: undefined is not a function TypeError: undefined is not a function
at /home/peters/skydrive/src/node_modules/cassandra-client/lib/driver.js:401:11
at /home/peters/skydrive/src/node_modules/cassandra-client/node_modules/thrift/lib/thrift/connection.js:80:11
at Object.recv_execute_cql_query (/home/peters/skydrive/src/node_modules/cassandra-client/lib/gen-nodejs/Cassandra.js:6231:12)
at /home/peters/skydrive/src/node_modules/cassandra-client/node_modules/thrift/lib/thrift/connection.js:83:36
at Socket. (/home/peters/skydrive/src/node_modules/cassandra-client/node_modules/thrift/lib/thrift/transport.js:69:9)
});
```

Expected behavior would be that the record is updated and an exception is not thrown.