cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Chalamet (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-5468) Prepared statement from default keyspace are broken
Date Sun, 14 Apr 2013 20:26:15 GMT
Pierre Chalamet created CASSANDRA-5468:
------------------------------------------

             Summary: Prepared statement from default keyspace are broken
                 Key: CASSANDRA-5468
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5468
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.4
         Environment: Windows 8 x64, java 1.7.0_11 x64
            Reporter: Pierre Chalamet


Tested under CQL 3 binary protocol.
Preparing a statement from the default keyspace of the connection (statement scoped with keyspace)
and then running it will always throw the error "no keyspace has been specified".

{code}
Exec: CREATE KEYSPACE Tests WITH replication = {'class': 'SimpleStrategy', 'replication_factor'
: 1}

Exec: CREATE TABLE Tests.AllTypes (a int, b int, primary key (a))

Prepare: insert into Tests.AllTypes (a, b) values (?, ?)
{code}

Exec prepared statement and exception "no keyspace has been specified" is thrown.

Doing a use Tests before preparing the statement solves the issue.
This used to work in 1.2.3.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message