classStringResult
final class StringResult
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
Derives the result type of string concatenation.
Rule: MYSQL-STRING-RESULT-001. The result is a binary string (VARBINARY) when an operand is a binary string and a character string (VARCHAR) otherwise; numbers and temporal values are converted to character strings. When an operand may or may not be a binary string the result is a choice of both. A missing or invalid operand type decides the result (MYSQL-TYPE-ALTERNATIVES-001). Terminates: no recursion. Source: https://dev.mysql.com/doc/refman/8.4/en/string-functions.html#function_concat. Status: Implemented.
Methods§
Answers the type of the concatenation of operands of the given types.
Parameters
$operands | list<TypeFact> |
Returns
Test cases 1
Called from 1
Calls 9
- new Alternatives line 36
- method-call Alternatives::blocking() line 37
- method-call Alternatives::of() line 45
- function-call
countline 49 - method-call Alternatives::known() line 53
- new Binary line 53
- class-const BinaryKind::VarBinary() line 53
- new Character line 56
- class-const CharacterKind::VarChar() line 56
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.