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

Knut Anders Hatlen updated DERBY-4868:
--------------------------------------

    Attachment: bit-boolean.diff

The attached patch removes the code that initializes the field 
JAVA_SQL_TYPES_BOOLEAN in JVMInfo, since it's always initialized to 
Types.BOOLEAN. It also makes BaseTypeIdImpl use Types.BOOLEAN directly instead 
of the field from JVMInfo.

> Remove Types.BIT/Types.BOOLEAN switch in JVMInfo
> ------------------------------------------------
>
>                 Key: DERBY-4868
>                 URL: https://issues.apache.org/jira/browse/DERBY-4868
>             Project: Derby
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.7.1.0
>
>         Attachments: bit-boolean.diff
>
>
> JVMInfo contains code to switch between using Types.BIT and Types.BOOLEAN 
> based on the JVM version. This was needed when we supported Java 1.3, since 
> Types.BOOLEAN was introduced in Java 1.4 and so Types.BIT had to be used 
> instead on old platforms. Currently, all supported JDBC versions (including 
> JSR-169 for small devices) have Types.BOOLEAN, so the code is no longer 
> needed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to