incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Sample <mike.sam...@gmail.com>
Subject CQL3 PreparedStatement - parameterized timestamp
Date Wed, 06 Feb 2013 08:06:24 GMT
Is there a way to re-use a prepared statement with different "using
timestamp" values?

BEGIN BATCH USING <timestamp>
INSERT INTO Foo (a,b,c) values (?,?,?)
...
APPLY BATCH;

Once bound or while binding the prepared statement to specific values, I'd
like to set the timestamp value.

Putting a question mark in for timestamp failed as expected and I don't see
a method on the DataStax java driver BoundStatement for setting it.

Thanks in advance.

/Mike Sample

Mime
View raw message