java - DatabaseMetaData interface does not work? -
i trying method of interface explained here in this tutorial:
here go:
databasemetadata dm = con.getmetadata(); system.err.println(dm.supportsresultsettype(resultset.type_scroll_sensitive));
i know supports type_scroll_sensitive
type. using , works. method above reported returns false. have ever tried using method? if yes work properly? in advance.
ps: same happens other 2 types of resultsets (type_scroll_insensitive
, type_forward_only
). considering type_forward_only
default type it's little bit strange false
in 3 cases. update: using jdbc-mysql drivers;
the implementation in mysql connector/j 5.1.21 is:
public boolean supportsresultsettype(int type) throws sqlexception { return (type == resultset.type_scroll_insensitive); }
however quick @ rest of implementation suggests mysql supports other types.
Comments
Post a Comment