Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string with hyphens #112

Open
NiveditaViswanath opened this issue Oct 9, 2014 · 1 comment
Open

string with hyphens #112

NiveditaViswanath opened this issue Oct 9, 2014 · 1 comment

Comments

@NiveditaViswanath
Copy link

I was trying to insert into a table with an 'id' column that is of 'text' datatype.
The value I was trying to insert is : "115f1999-b4e4-4e0d-9f81-47cd5e6b2801"

I get a 'String didn't validate' error.

This error is not from Cassandra's side, since I am able to manually insert this value. What is the workaround for this?

'

@srlm-io
Copy link

srlm-io commented Oct 9, 2014

Have you tried using hint syntax? I suspect that node-cassandra-cql is detecting that your string is a UUID, and hence sending it a CQL statement without quotes.

https://github.com/jorgebay/node-cassandra-cql#how-can-specify-the-target-data-type-of-a-query-parameter

Also, don't forget to migrate to the new version of the driver:

https://github.com/datastax/nodejs-driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants