{"issue":{"milestone":null,"title":"[FRG-406] SqlTypeName assumptions about min/max JDBC type are invalid under JDK 1.6","created_at":"2011-12-30T03:10:48Z","user":{"login":"dynamobi-build","id":1123017,"url":"https://api.github.com/users/dynamobi-build","avatar_url":"https://secure.gravatar.com/avatar/cb215b3d786be20761071a562a56af64?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cb215b3d786be20761071a562a56af64"},"updated_at":"2011-12-30T03:10:51Z","state":"closed","labels":[{"name":"FRG","url":"https://api.github.com/repos/dynamobi/dynamobi/labels/FRG","color":"1f8f0d"}],"id":2685724,"closed_at":"2011-12-30T03:10:49Z","html_url":"https://github.com/dynamobi/dynamobi/issues/363","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"<b><i>[reporter=\"emcdermid\", created=\"Tue, 10 Aug 2010 21:58:36 -0500 (GMT-05:00)\"]</i></b>\nSqlTypeName.java sets MIN_JDBC_TYPE and MAX_JDBC_TYPE to values that are valid for JDK 1.5.  Unfortunately, JDK 1.6 introduced type constant values outside of this range.\n<br/>\n\n<br/>\nIf one of these new constants is returned by a call to a JDBC4 driver, SqlTypeName.getNameForJdbcType(int) will fail with an ArrayIndexOutOfBoundsException.\n<br/>\n\n<br/>\nA typical case of this could be the Microsoft JDBC 4.0 driver.  Earlier versions of the driver reported the type of NVARCHAR columns in SqlServer as VARCHAR, which would work.  With the newer driver, however, NVARCHAR will be returned.","number":363,"url":"https://api.github.com/repos/dynamobi/dynamobi/issues/363","comments":1,"assignee":null},"comment":{"created_at":"2011-12-30T03:10:51Z","user":{"login":"dynamobi-build","id":1123017,"url":"https://api.github.com/users/dynamobi-build","avatar_url":"https://secure.gravatar.com/avatar/cb215b3d786be20761071a562a56af64?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cb215b3d786be20761071a562a56af64"},"updated_at":"2011-12-30T03:10:51Z","id":3309498,"body":"<b><i>[author=\"emcdermid\", created=\"Tue, 10 Aug 2010 23:13:08 -0500 (GMT-05:00)\"]</i></b>\nFixed in changelist 13800 (on open/dt/dev) by adding the extra JDK 1.6 constants and resetting the min/max.  Also added unit tests to ensure all JDBC type constants map to what we expect them to, including \"null\" for ones we don't support at all.","url":"https://api.github.com/repos/dynamobi/dynamobi/issues/comments/3309498"},"action":"created"}