db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren" <m.v.lunte...@gmail.com>
Subject Re: [jira] Commented: (DERBY-7) Bug in NULLIF Function
Date Fri, 05 May 2006 01:55:29 GMT
On 5/4/06, Bernt M. Johnsen <Bernt.Johnsen@sun.com> wrote:

> The net result from the two mentioned commits is as far a I can see
> the diff below. Myrna: can you confirm?
>
> Index:
> java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/resultset.java
> ===================================================================
> ---
> java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/resultset.java
> (revision 399685)
> +++
> java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/resultset.java
> (working copy)
> @@ -798,12 +798,9 @@
>                                try{
>                                row.append(s.getString(i));
>                                } catch(SQLException ex){
> -                                       if (ex.getSQLState().equals("22005"))
> {
> -                                               if (s.getBytes(i) != null)
> -                row.append(new String(s.getBytes(i)));
> -                                               else
> -                row.append(s.getBytes(i));
> -                                       } else throw ex;
> +                                       if (ex.getSQLState
> ().equals("22005"))
> +                                               row.append("Invalid
> Conversion Error\n");
> +                                       else throw ex;
>                                }
>                        }
>                        row.append("}\n");


Hi Berndt,

I think that's it.

Myrna

Mime
View raw message