From issues-return-94477-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Mar 29 12:02:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3C5AC18076D for ; Fri, 29 Mar 2019 13:02:02 +0100 (CET) Received: (qmail 51165 invoked by uid 500); 29 Mar 2019 12:02:01 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 51147 invoked by uid 99); 29 Mar 2019 12:02:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Mar 2019 12:02:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D7939E29C1 for ; Fri, 29 Mar 2019 12:02:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 472612459D for ; Fri, 29 Mar 2019 12:02:00 +0000 (UTC) Date: Fri, 29 Mar 2019 12:02:00 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (IGNITE-11563) DELETE WHERE does not work in prepared statements 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/IGNITE-11563?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Ozerov reassigned IGNITE-11563: ---------------------------------------- Assignee: Pavel Kuznetsov > DELETE WHERE does not work in prepared statements > ------------------------------------------------- > > Key: IGNITE-11563 > URL: https://issues.apache.org/jira/browse/IGNITE-11563 > Project: Ignite > Issue Type: Bug > Components: sql > Affects Versions: 2.7 > Reporter: Stefan > Assignee: Pavel Kuznetsov > Priority: Minor > > With SQL I cannot delete a row using a prepared statement. The following = statement is simply ignored: > {{DELETE}} {{FROM}} {{AnyTable WHERE}} {{id =3D ?}} > This happens with JDBC-Thin and with ODBC so I suspect that the cluster = gets the correct data but handles it wrong. By adding an always-true-condit= ion it works as expected: > {{DELETE}} {{FROM}} {{AnyTable WHERE}} {{id =3D id AND}} {{id =3D ?}} > I tested with a very simple table that was created with: > {{CREATE TABLE testtable (}} > {{=C2=A0=C2=A0=C2=A0 "ID" NUMBER(19,0),}} > {{=C2=A0=C2=A0=C2=A0 "VALUE" VARCHAR2(255 CHAR),}} > {{=C2=A0=C2=A0=C2=A0 PRIMARY KEY (ID)}} > {{) WITH "template=3Dreplicated,cache_name=3Dtesttable"}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)