Re: Fix getXXX methods when used with CHAR columns or

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Kim Ho <kho(at)redhat(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Fix getXXX methods when used with CHAR columns or
Date: 2003-06-30 21:09:29
Message-ID: 1057007368.3273.92.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-patches

patch applied,

Thanks,

Dave
On Wed, 2003-06-18 at 13:44, Kim Ho wrote:
> Problem:
> - Error parsing input in getByte() and getShort() if input has a decimal or whitespace (from CHAR columns)
> - Error parsing CHAR columns in other getXXX methods.
>
> Fix:
> - Added trim() to getXXX methods
> - In getByte() and getShort(), check the field type and take out the decimal and everything after it. Also check for CHAR and trim if necessary.
>
> Cheers,
>
> Kim
>
>
>
> ______________________________________________________________________
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Dave Cramer <Dave(at)micro-automation(dot)net>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2003-06-30 21:09:46 Re: Allow setObject(x,y,Types.BIT) if y is a Number &
Previous Message Kim Ho 2003-06-30 16:56:56 Re: Allow setObject(x,y,Types.BIT) if y is a Number &

Browse pgsql-patches by date

  From Date Subject
Next Message Dave Cramer 2003-06-30 21:09:46 Re: Allow setObject(x,y,Types.BIT) if y is a Number &
Previous Message Joe Conway 2003-06-30 21:05:45 Re: [HACKERS] Missing array support