cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Yaskevich (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-11456) support for PreparedStatement with LIKE
Date Tue, 29 Mar 2016 18:19:25 GMT
Pavel Yaskevich created CASSANDRA-11456:

             Summary: support for PreparedStatement with LIKE
                 Key: CASSANDRA-11456
             Project: Cassandra
          Issue Type: Bug
          Components: CQL
            Reporter: Pavel Yaskevich
            Assignee: Pavel Yaskevich
            Priority: Minor
             Fix For: 3.4

Using the Java driver for example:
PreparedStatement pst = session.prepare("select * from test.users where first_name LIKE ?");
BoundStatement bs = pst.bind("Jon%");
The first line fails with {{SyntaxError: line 1:47 mismatched input '?' expecting STRING_LITERAL}}
(which makes sense since it's how it's declared in the grammar). Other operators declare the
right-hand side value as a {{Term.Raw}}, which can also be a bind marker.

I think users will expect to be able to bind the argument this way.

This message was sent by Atlassian JIRA

View raw message