You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Lerer (JIRA)" <ji...@apache.org> on 2014/12/02 10:39:14 UTC
[jira] [Updated] (CASSANDRA-6952) Cannot bind variables to USE
statements
[ https://issues.apache.org/jira/browse/CASSANDRA-6952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Lerer updated CASSANDRA-6952:
--------------------------------------
Attachment: CASSANDRA-6952-2.1.txt
CASSANDRA-6952-2.0.txt
The patch change the error message to "Bind variables cannot be used for keyspace or table names".
The patch for 2.1 add also a unit test to the behavior.
> Cannot bind variables to USE statements
> ---------------------------------------
>
> Key: CASSANDRA-6952
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6952
> Project: Cassandra
> Issue Type: New Feature
> Components: Core
> Reporter: Matt Stump
> Assignee: Benjamin Lerer
> Priority: Minor
> Labels: cql3
> Attachments: CASSANDRA-6952-2.0.txt, CASSANDRA-6952-2.1.txt
>
>
> Attempting to bind a variable for a USE query results in a syntax error.
> Example Invocation:
> {code}
> ResultSet result = session.execute("USE ?", "system");
> {code}
> Error:
> {code}
> ERROR SYNTAX_ERROR: line 1:4 no viable alternative at input '?', v=2
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)