Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1-incubating
-
None
-
None
-
centos:6.7,
Description
when i was using getString method on tinyint unsigned(255) column, throwed exception:
Numerica out of range .
test code as following:
####
public void testGetString() throws SQLException {
String tableName = "testGetString";
try
{ Statement stmt = conn.createStatement(); stmt.executeUpdate("cqd traf_tinyint_return_values 'ON'"); stmt.executeUpdate("cqd traf_tinyint_input_params 'ON'"); stmt.executeUpdate("create table " + tableName + " (id int not null,age tinyint unsigned,primary key(id))"); stmt.executeUpdate("insert into " + tableName + " values(1,255)"); ResultSet rs = stmt.executeQuery("select * from " + tableName); rs.next(); System.out.println(rs.getString(2)); }finally
{ dropTable(tableName); } }
####
Attachments
Issue Links
- links to