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 Re: CQL3 PreparedStatement - parameterized timestamp
Date Wed, 06 Feb 2013 08:33:52 GMT
Thanks Sylvain.  I should have scanned Jira first.  Glad to see it's on the
todo list.


On Wed, Feb 6, 2013 at 12:24 AM, Sylvain Lebresne <sylvain@datastax.com>wrote:

> Not yet: https://issues.apache.org/jira/browse/CASSANDRA-4450
>
> --
> Sylvain
>
>
> On Wed, Feb 6, 2013 at 9:06 AM, Mike Sample <mike.sample@gmail.com> wrote:
>
>> 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