[jira] [Updated] (CASSANDRA-6952) Cannot bind variables to USE statements

2015-12-07 Thread Benjamin Lerer (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-6952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Lerer updated CASSANDRA-6952:
--
Component/s: CQL

> 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: CQL
>Reporter: Matt Stump
>Assignee: Benjamin Lerer
>Priority: Minor
>  Labels: cql3
> Fix For: 2.0.12, 2.1.3
>
> 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)


[jira] [Updated] (CASSANDRA-6952) Cannot bind variables to USE statements

2014-12-02 Thread Benjamin Lerer (JIRA)

 [ 
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)


[jira] [Updated] (CASSANDRA-6952) Cannot bind variables to USE statements

2014-03-31 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-6952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-6952:


Issue Type: New Feature  (was: Bug)

 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
Priority: Minor
  Labels: cql3

 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.2#6252)