@Override
	public int num_rows() throws SQLException {
		if(this.res != null && !this.res.isClosed()) {
			res.last();
			int num_rows = res.getRow();
			res.beforeFirst();
			return num_rows;
		} else {
			return 0;
		}
	}