db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomohito Nakayama (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1610) Engine take it as type compatibility error to update column typed as CHAR to value passed via setBinaryStream(null), though Network Client and Network Server does not take it as error.
Date Sun, 30 Jul 2006 07:51:15 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1610?page=comments#action_12424368 ] 
            
Tomohito Nakayama commented on DERBY-1610:
------------------------------------------

I think current behavior of Engine is reasonable.

When setNull method was called, type information of the null value is specified.
Then, Engine can determine whether the type of null value is acceptable.

On the other hand, when setBinaryStream method was called, type information of the null value
is not specified.
Then Engine does not have any other way other than takeing the null value as incompatible
type error.

 
Now questionable part is implementation of NetworkClient/NetoworkServer around type of value,
especially null value.
Current behavior looks like as if NetworkClient/NetworkServer ignore type of null value.

> Engine take it as type compatibility error to update column typed as CHAR to value passed
via setBinaryStream(null), though Network Client and Network Server does not take it as error.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-1610
>                 URL: http://issues.apache.org/jira/browse/DERBY-1610
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Server, Network Client
>            Reporter: Tomohito Nakayama
>         Assigned To: Tomohito Nakayama
>         Attachments: TestNullChar.java
>
>
> There exists difference between Engine and Network Client/Engine around type compatibility
judgement in character typed column when null value was passed as InputStream.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message