You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2017/07/04 15:07:00 UTC

[jira] [Updated] (IGNITE-5347) Document enums usage in SQL queries

     [ https://issues.apache.org/jira/browse/IGNITE-5347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Ozerov updated IGNITE-5347:
------------------------------------
    Fix Version/s:     (was: 2.1)
                   2.2

> Document enums usage in SQL queries
> -----------------------------------
>
>                 Key: IGNITE-5347
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5347
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Denis Magda
>            Assignee: Denis Magda
>             Fix For: 2.2
>
>
> Here is a documentation to be added to this page (https://apacheignite.readme.io/v2.0/docs/distributed-queries-21):
> If a field is of a Java enum type, then you can pass the field's value as a parameter via standard `?` keyword or use enum's literal or ordinal value directly, as shown in the example below:
> // SQL query with the field of Java enum type.
> SqlFieldsQuery sql = new SqlFieldsQuery(
> "SELECT name FROM Person WHERE role = 'DEVELOPER' or role = 2");



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)