List:MySQL and Java« Previous MessageNext Message »
From:Christian Mack Date:July 15 1999 6:45pm
Subject:Re: [Fwd: Problem to read a tinyInt column]
View as plain text  
"C. Javier Castro Peña" wrote:
> -------- Original Message --------
> I am trying to read the value of  a column (SQL Type : tinyInt(2)
> unsigned ). After  I execute the query,  I use
> querydatasetName.getByte("columnName")  because  the compiler gives
> an
> error if I use other getXXX() method to get the value.
> But the value I get is a 50 instead a 4 (in one of the cases). I
> don't
> have problems to get the values of other field types with the
> getXXX()
> How could be the problem solved?
> I use Jbuilder 2.01

Hi Javier

What JDBC driver are you using?

This should never happen!
You should be able to use the getInt() also.


PS: Sorry for the late answer, I was on vacation.

[Fwd: Problem to read a tinyInt column]C. Javier Castro Peña28 Jun
  • Re: [Fwd: Problem to read a tinyInt column]Christian Mack15 Jul