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

Andrey Gura commented on IGNITE-4175:
-------------------------------------

I completely don't understand why our JDBC drivers return {{"null"}} string 
instead of {{null}} value in this case. From my point of view current behavior 
is incorrect. See also JDCB {{ResultSet.getString()}} method's javadoc:
{code:java}
    /**
     * Retrieves the value of the designated column in the current row
     * of this <code>ResultSet</code> object as
     * a <code>String</code> in the Java programming language.
     *
     * @param columnIndex the first column is 1, the second is 2, ...
     * @return the column value; if the value is SQL <code>NULL</code>, the
     * value returned is <code>null</code>
     * @exception SQLException if the columnIndex is not valid;
     * if a database access error occurs or this method is
     *            called on a closed result set
     */
    String getString(int columnIndex) throws SQLException;
{code}

> SQL: JdbcResultSet class wasNull() method should return true on NULL fields
> ---------------------------------------------------------------------------
>
>                 Key: IGNITE-4175
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4175
>             Project: Ignite
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6, 1.7
>            Reporter: Andrew Mashenkov
>            Assignee: Andrew Mashenkov
>              Labels: newbie
>             Fix For: 1.8
>
>
> For now wasNull() method can return false for NULL field in case of field 
> typed as String.
> Startpoints are org.apache.ignite.internal.jdbc.JdbcResultSet class
> and org.apache.ignite.internal.jdbc2.JdbcResultSet class



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to