Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2486B10A85 for ; Sun, 14 Apr 2013 20:26:16 +0000 (UTC) Received: (qmail 10838 invoked by uid 500); 14 Apr 2013 20:26:15 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 10812 invoked by uid 500); 14 Apr 2013 20:26:15 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 10801 invoked by uid 99); 14 Apr 2013 20:26:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Apr 2013 20:26:15 +0000 Date: Sun, 14 Apr 2013 20:26:15 +0000 (UTC) From: "Pierre Chalamet (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-5468) Prepared statement from default keyspace are broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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