From: <mro...@us...> - 2012-08-08 19:43:36
|
Revision: 57018 http://firebird.svn.sourceforge.net/firebird/?rev=57018&view=rev Author: mrotteveel Date: 2012-08-08 19:43:30 +0000 (Wed, 08 Aug 2012) Log Message: ----------- Revert range check change and add TODO to check it later Modified Paths: -------------- client-java/trunk/src/main/org/firebirdsql/jdbc/FBConnectionHelper.java Modified: client-java/trunk/src/main/org/firebirdsql/jdbc/FBConnectionHelper.java =================================================================== --- client-java/trunk/src/main/org/firebirdsql/jdbc/FBConnectionHelper.java 2012-08-08 19:30:10 UTC (rev 57017) +++ client-java/trunk/src/main/org/firebirdsql/jdbc/FBConnectionHelper.java 2012-08-08 19:43:30 UTC (rev 57018) @@ -170,7 +170,8 @@ try { // try to deal with a value as a byte or int int intValue = Integer.parseInt((String)value); - if (intValue >= Byte.MIN_VALUE && intValue <= Byte.MAX_VALUE) + // TODO Find out if this is intentional + if (intValue < 256) return Byte.valueOf((byte) intValue); else return Integer.valueOf(intValue); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |