cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vivek Mishra (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-2277) parameter substitution for Java CQL driver
Date Mon, 07 Mar 2011 09:59:59 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003307#comment-13003307
] 

Vivek Mishra commented on CASSANDRA-2277:
-----------------------------------------

Should it be like:

conn.execute("SELECT ?,? FROM Standard1 WHERE KEY = ?")
conn.setParameter(1, "10");
conn.setParameter(2, "20");
conn.setParameter(3, "foo");

Making it complined with JPA?

> parameter substitution for Java CQL driver
> ------------------------------------------
>
>                 Key: CASSANDRA-2277
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2277
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: API
>            Reporter: Eric Evans
>              Labels: cql
>             Fix For: 0.8
>
>
> The Java driver should support parameter substitution such that given a query string
and a sequence of arguments, question marks ('?') in the query string will be substituted
with the arguments.
> {code:style=Java}
> conn.execute("SELECT ?,? FROM Standard1 WHERE KEY = ?", 10, 20, "foo")
> {code} 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message