求救啊!!!!!
连接类 Dbcom 的 查询方法代码片断。。 
 
public ResultSet search(String sql)
   {       try {
           pstmt = conn.prepareStatement(sql,
                                         ResultSet.TYPE_SCROLL_INSENSITIVE,
                                      ResultSet.CONCUR_UPDATABLE);
           rs = pstmt.executeQuery();
       } catch (SQLException ex) {
           System.out.println(ex.toString());
           ex.printStackTrace();
       }
       return rs;
   }。。正常连接 
在调用 方法   
 re = new Dbcom().search("select ....")如果数据库 存在符合查询条件的数据时正常,
如果数据库中没有相关的记录是 re应该是null,但这时回报“[Microsoft][ODBC   驱动程序管理器]   无效的游标状态 ” 的错误
请问我的查询方法应该如何修改????