package testsuite.simple; import java.sql.ResultSetMetaData; import testsuite.BaseTestCase; public class TestBug34194 extends BaseTestCase { public TestBug34194(String name) { super(name); // TODO Auto-generated constructor stub } public void testBug34194() throws Exception { createTable("bug34194", "(id integer,geom geometry) ENGINE=InnoDB"); try { this.stmt.execute("insert into bug34194 values('1',GeomFromText('POINT(622572.881 5156121.034)'))"); this.rs = this.stmt.executeQuery("select * from bug34194"); ResultSetMetaData RSMD = this.rs.getMetaData(); assertEquals("NOT-unknown type returned", -2, RSMD.getColumnType(2)); //System.out.println(RSMD.getColumnClassName(2)); } finally { closeMemberJDBCResources(); } } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub junit.textui.TestRunner.run(TestBug34194.class); } }