public String getObjectDetails(String buffer) {
dbcon con = new dbcon();
ResultSet rs = null;
String name_msg=null;
String type_msg=null;
int type_code=0;
int name_code=0;
try {
rs = con.dbstate().createStatement().executeQuery("SELECT pkg_test1.get_object_type('"+buffer+"',"+type_code+",'"+type_msg+"'),pkg_test1.get_object_name('"+buffer+"',"+name_code+",'"+name_msg+"') from dual");
if (rs.next()) {
return rs.getString(1) + "," + rs.getString(2);
}
} catch (SQLException ex) {
Logger.getLogger(username.class.getName()).log(Level.SEVERE, null, ex);
}
return "";
}
而且,我正在尝试从PKG_TEST1
包内声明的这两个函数中获取信息
FUNCTION get_object_type(i_buffer IN VARCHAR2, o_errcode OUT NUMBER,
o_errmsg OUT VARCHAR2) RETURN VARCHAR2;
FUNCTION get_object_name(i_buffer IN VARCHAR2, o_errcode OUT NUMBER,
o_errmsg OUT VARCHAR2) RETURN VARCHAR2;
但是,我收到错误
java.sql.SQLException: ORA-06572: Function GET_OBJECT_NAME has out arguments
请帮我解决这个问题。