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 20D3517A05 for ; Thu, 3 Sep 2015 18:54:46 +0000 (UTC) Received: (qmail 12748 invoked by uid 500); 3 Sep 2015 18:54:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 12710 invoked by uid 500); 3 Sep 2015 18:54:46 -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 12574 invoked by uid 99); 3 Sep 2015 18:54:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2015 18:54:45 +0000 Date: Thu, 3 Sep 2015 18:54:45 +0000 (UTC) From: "Jduarte (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10263) Insert in Cassandra in a collection, values with single quote MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10263?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jduarte updated CASSANDRA-10263: -------------------------------- Description:=20 I think there is a problem with single quotes in collection fields. This is= what I try: Table: CREATE TABLE test (name text, foo map, PRIMARY KEY(name))= ; Insert: INSERT INTO test (name, foo) VALUES ( 'jos''emy',{'foo':'josemy''s= hou=C3=B1se'}); Query: SELECT * FROM test; name | foo ---------+----------------------------- jos'emy | {'foo': 'josemy''s hou=C3=B1se'} As you can see, Cassandra replace the double quote in the simple "name" fie= ld, but does not replace the quotes in the field inside the map. The result= (I think) should be: name | foo ---------+----------------------------- jos'emy | {'foo': 'josemy's hou=C3=B1se'} was: I think there is a problem with single quotes in collection fields. This is= what I try: Table: CREATE TABLE test (name text, foo map, PRIMARY KEY(name))= ; Insert: INSERT INTO test (name, foo) VALUES ( 'jos''emy',{'foo':'josemy''s= hou=C3=B1se'}); Query: SELECT * FROM test; name | foo ---------+----------------------------- jos'emy | {'foo': 'josemy''s hou=C3=B1se'} As you can see, Cassandra replace the double quote in the simple "name" fie= ld, but does not replace the quotes in the field inside the map. The result= (I think) should be: name | foo ---------+----------------------------- jos'emy | {'foo': 'josemy's hou=C3=B1se'} > Insert in Cassandra in a collection, values with single quote > ------------------------------------------------------------- > > Key: CASSANDRA-10263 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1026= 3 > Project: Cassandra > Issue Type: Bug > Reporter: Jduarte > Fix For: 2.2.1 > > Attachments: terminal.png > > > I think there is a problem with single quotes in collection fields. This = is what I try: > Table: CREATE TABLE test (name text, foo map, PRIMARY KEY(name= )); > Insert: INSERT INTO test (name, foo) VALUES ( 'jos''emy',{'foo':'josemy'= 's hou=C3=B1se'}); > Query: SELECT * FROM test; > name | foo > ---------+----------------------------- > jos'emy | {'foo': 'josemy''s hou=C3=B1se'} > As you can see, Cassandra replace the double quote in the simple "name" f= ield, but does not replace the quotes in the field inside the map. The resu= lt (I think) should be: > name | foo > ---------+----------------------------- > jos'emy | {'foo': 'josemy's hou=C3=B1se'} -- This message was sent by Atlassian JIRA (v6.3.4#6332)