cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eax Melanhovich <m...@eax.me>
Subject InvalidQueryException: Invalid amount of bind variables
Date Wed, 24 Jun 2015 14:35:22 GMT
Hello.

I'm having some problems with Cassandra driver for Java.

Here is a simple Scala project:

https://github.com/afiskon/scala-cassandra-example

When I run it I get following output:

http://paste.ubuntu.com/11767987/

As I understand this piece of code:

```
private val id = "id"
private val description = "description"

QB.insertInto(table)
  .value(id, dto.id)
  .value(description, dto.descr)
  .getQueryString
```

... generates query string:

INSERT INTO todo_list(id,description) VALUES (1,?)

But I can't figure out why the second value is missing.

What am I doing wrong?

-- 
Best regards,
Eax Melanhovich
http://eax.me/

Mime
View raw message