cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-11456) support for PreparedStatement with LIKE
Date Tue, 13 Sep 2016 11:09:20 GMT


Sam Tunnicliffe commented on CASSANDRA-11456:

[~maximp] Sorry, but the tick tock release schedule doesn't work like that. Only critical
security fixes would warrant a 3.5.1 release I'm afraid. That said, I believe that the patch
can be trivially applied to 3.5, so if it's an absolute blocker for you, you could build your
own version (though I would recommend thoroughly testing that before deploying to production
of course).

background on tick-tock: [summary|]
&  [detail|]

> support for PreparedStatement with LIKE
> ---------------------------------------
>                 Key: CASSANDRA-11456
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL
>            Reporter: Pavel Yaskevich
>            Assignee: Sam Tunnicliffe
>            Priority: Minor
>              Labels: sasi
>             Fix For: 3.6
> Using the Java driver for example:
> {code}
> PreparedStatement pst = session.prepare("select * from test.users where first_name LIKE
> BoundStatement bs = pst.bind("Jon%");
> {code}
> 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