/** * Read the result set from the function. This method doesn't cache. * * @param session the session * @return the result set */ public ResultSet getResultSet(Session session) { ValueResultSet v = getValueResultSet(session); return v == null ? null : v.getResultSet(); }
Table table = new FunctionTable(mainSchema, session, tf, tf); TableFilter filter = new TableFilter(session, table, null, rightsChecked, currentSelect);
meta.getScale(i + 1), meta.getColumnDisplaySize(i + 1)); setColumns(cols); } catch (SQLException e) { throw DbException.convert(e);
recompileAlways = true; table = new FunctionTable(mainSchema, session, expr, call);
/** * Read the result from the function. This method buffers the result in a * temporary file. * * @param session the session * @return the result */ public ResultInterface getResult(Session session) { ValueResultSet v = getValueResultSet(session); if (v == null) { return null; } if (cachedResult != null && cachedValue == v) { cachedResult.reset(); return cachedResult; } LocalResult result = LocalResult.read(session, v.getResultSet(), 0); if (function.isDeterministic()) { cachedResult = result; cachedValue = v; } return result; }