Quantcast
Channel: DataStax Support Forums » Recent Topics
Viewing all articles
Browse latest Browse all 387

sarobenalt on "Java Driver - CQL 3 - Bound Statements - IN clause"

$
0
0

Hi all!

As the topic indicates, I am trying to figure out how to bind variables for an IN clause in a bound statement when using the Java Driver. In my case, I am building a query that returns a result set containing records that match one of several (but not a fixed number) key values represented by UUIDs. Because the number of key values varies, I was attempting to pass a List<UUID> or an Array of UUIDs to a single bind variable, but received an error indicating that a data type of UUID was expected.

Is there a way to pass a variable-sized list to an IN clause, or should I not be using a bound statement for this query?


Viewing all articles
Browse latest Browse all 387

Trending Articles