classEscapedRelation
final class EscapedRelation
implements Relation
uses Snapshot
Public API: explicitly declared with
@visibility public.The ODBC escape { word table_reference } of the 5.x grammars, where any identifier takes the place of OJ.
Rule: MYSQL-ODBC-JOIN-001. The server ignores the word; the braces group the reference like parentheses and change no name. Source: https://dev.mysql.com/doc/refman/5.7/en/join.html. Status: Implemented.
$query = (new \SqlSemantics\Platform\MySql\Semantics('mysql-5.7.44'))->analyze('SELECT 1 FROM { oj t LEFT JOIN u ON t.a = u.a }');
$query->statement->from->word->value // => 'oj'Properties§
public Name $wordpublic Relation $relationMethods§
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFactDerives the escaped reference.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 2
- method-call FromScope::enter() line 46
- new FromScope line 46
public function render(Output $out): voidWrites the escape.
Parameters
$out | Output |
Calls 2
- method-call Output::symbol() line 54
- class-const NameUse::Label() line 54
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.