SQLFeatureNotSupportedException on getArray
===

MySQL 5.5//
STS 2.9.2//
mysql-connector-java-5.1.21-bin.jar


Hello guys. I've got an problem on my project.

I'm on a little project that use MySQL and JAVA, and I want to get an array from ResultSet.
So I coded like this :

    try {
	Connection conn = DriverManager.getConnection(url, id, pass);
	Statement stmt = conn.createStatement();
	ResultSet rs = stmt.executeQuery(query); 
			
	if(rs.next()) {
				
				
		Array code = rs.getArray("code");
		Array count = rs.getArray("count");			
		
		Object objCode = code.getArray();
		Object objCount = count.getArray();

		int[] itemCode = (int[]) objCode;
		int[] itemCount = (int[]) objCount;
		
		// do something
		
	} 
			
			
	conn.close();
	stmt.close();
	rs.close();
			
    } catch(SQLException e) { 
	     printError(e);
    }



Then, I got a **SQLFeatureNotSupportedException** at 'getArray()'.

If I delete the line, it does not give that exception.

I googled about it, and I found that that`s because JDBC driver does not support this method. I cannot understand what it says, and how do I solve this problem??



Thanks!