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

Gary Dusbabek commented on CASSANDRA-2277:
------------------------------------------

Everything here is isolated to the jdbc driver code with one exception: I added 
a AbstractType.toString(T t) because it is necessary to convert actual 
instances (of T) to a string to substitute into the query string that gets sent 
to the server.

> 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
>            Assignee: Gary Dusbabek
>              Labels: cql
>             Fix For: 0.8
>
>         Attachments: 
> v1-0001-AbstractType-converts-types-to-Strings-not-just-ByteBu.txt, 
> v1-0002-JDBC-PreparedStatements-some-tests.txt, 
> v1-0003-compress-utf8-bytes-and-not-platform-bytes.txt, 
> v1-0004-fix-off-by-one-in-CassandraResultSet.txt
>
>
> 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

Reply via email to