Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 53498 invoked from network); 7 Mar 2011 10:02:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Mar 2011 10:02:21 -0000 Received: (qmail 12911 invoked by uid 500); 7 Mar 2011 10:02:21 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 12890 invoked by uid 500); 7 Mar 2011 10:02:21 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 12882 invoked by uid 99); 7 Mar 2011 10:02:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 10:02:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2011 10:02:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8D44139A407 for ; Mon, 7 Mar 2011 10:01:59 +0000 (UTC) Date: Mon, 7 Mar 2011 10:01:59 +0000 (UTC) From: "Vivek Mishra (JIRA)" To: commits@cassandra.apache.org Message-ID: <66555683.645.1299492119575.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1641443620.1116.1299352725879.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (CASSANDRA-2277) parameter substitution for Java CQL driver MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003309#comment-13003309 ] Vivek Mishra commented on CASSANDRA-2277: ----------------------------------------- Query query = conn.createQuery("SELECT ?,? FROM Standard1 WHERE KEY = ?") query.setParameter(1, "10"); query.setParameter(2, "20"); query.setParameter(3, "foo"); query.execute(); 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