[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-java
Subject:    Re: using getObject() for small types
From:       Mark Matthews <mmatthew () thematthews ! org>
Date:       2002-06-18 22:59:56
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gregory Frank wrote:
| I am using a getObject() call on data fields of types TINYINT and
SMALLINT.
| It appears that a Java Integer type is being returned instead of the Short
| and Byte that the JDBC specs say should be. Is this indeed the case?

What version of the driver are you using? 2.0.14 is the latest
(http://mmmysql.sourceforge.net/) and has the correct code. These
columns don't happen to be un-signed, do they? In that case the driver
needs to revert to the next bigger type.

	-Mark



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6-2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAj0Pu2wACgkQlyjUJM+7nP5D0QCfcSl3jCWp35AzOA8BweuPiJN+
dw0An27OIH4vFu9fi3gqldqMeh75xPFQ
=tBkA
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail java-thread3851@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail java-unsubscribe@lists.mysql.com instead.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic