PHP Warning: Uncaught exception 'PDOException' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: query has no destination for result data
HINT: If you want to discard the results of a SELECT, use PERFORM instead.
CONTEXT: PL/pgSQL function descend(integer) line 11 at SQL statement' in php shell code:1
Stack trace:
#0 php shell code(1): PDO->query('SELECT descend(...')
$parent_id = SQL::queryCell('SELECT descend(:root_id)', [
':root_id' => $this->id
]);
SELECT root_id, level, count(*) as count FROM matrix GROUP BY root_id, level
HAVING count(*) < power(_type.degree, level);