ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-11563) DELETE WHERE does not work in prepared statements
Date Fri, 12 Apr 2019 11:46:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-11563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816194#comment-16816194
] 

Pavel Kuznetsov commented on IGNITE-11563:
------------------------------------------

One more point to think: 
guess we decided to store internally decimal values with any scale. We have column with type
{{decimal(19,5)}} , but in cache we store decimal with scale = 7. We perform select returning
this value - what should we do in this case: return value with greater scale (7) that specified
in the type (5)? Or should we round it ( to scale = 5)? Jdbc spec says we should return full
*precision* value. 

> 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> With SQL I cannot delete a row using a prepared statement. The following statement is
simply ignored:
>  {{DELETE}} {{FROM}} {{AnyTable WHERE}} {{id = ?}}
>  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-condition it works as expected:
>  {{DELETE}} {{FROM}} {{AnyTable WHERE}} {{id = id AND}} {{id = ?}}
>  I tested with a very simple table that was created with:
> {{CREATE TABLE testtable (}}
>  {{    "ID" NUMBER(19,0),}}
>  {{    "VALUE" VARCHAR2(255 CHAR),}}
>  {{    PRIMARY KEY (ID)}}
>  {{) WITH "template=replicated,cache_name=testtable"}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message