classRoutineCalls
final class RoutineCalls
The result of a call written as name(...) or db.name(...): a native, loadable or stored function.
Rule: MYSQL-ROUTINE-CALL-001. A qualified call is a stored function of that database, whose signature the context cannot hold: its result depends on the undeclared routine. An unqualified call of a native function of the release (MYSQL-NATIVE-FUNCTIONS-001) has the documented result of that function (MYSQL-CALL-RESULT-001); an argument alias, a wrong argument count and a function reserved for the data dictionary are errors the server reports, and the result is invalid. Any other unqualified call is a loadable function or a stored function of the default database: its result depends on the undeclared routine. Terminates: one table lookup over the derived argument facts. Source: https://dev.mysql.com/doc/refman/8.4/en/function-resolution.html. Status: Implemented.
Methods§
public function result(
FunctionCall $call,
list<ScalarFact> $arguments,
Derivation $derivation,
): ScalarFactAnswers the facts of a call from the facts of its arguments and reports its problems.
Parameters
$call | FunctionCall | |
$arguments | list<ScalarFact> | |
$derivation | Derivation |
Returns
Test cases 3
Called from 1
Calls 17
- new NativeFunctions line 47
- method-call NativeFunctions::exists() line 48
- new ScalarFact line 49
- new Dependent line 49
- new UndeclaredRoutine line 49
- new QualifiedName line 49
- class-const Nullability::Dependent() line 49
- method-call NativeFunctions::row() line 51
- function-call
countline 51 - method-call FunctionCall::named() line 52
- new NamedArgument line 54
- new WrongArgumentCount line 55
- new ReservedFunction line 56
- method-call Derivation::report() line 58
- new Invalid line 60
- method-call ResultTyping::fact() line 63
- new ResultTyping line 63
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.