classOdbcJoin
final class OdbcJoin
implements Relation
uses Snapshot
Public API: explicitly declared with
@visibility public.The ODBC escape { OJ table_reference } of the 8.0 and later grammars.
Rule: MYSQL-ODBC-JOIN-001. The braces group the reference like parentheses and change no name. Source: https://dev.mysql.com/doc/refman/8.4/en/join.html ("The { OJ ... } syntax ... exists only for compatibility with ODBC"). Status: Implemented.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT 1 FROM { OJ t LEFT JOIN u ON t.a = u.a }');
$query->statement->from->relation instanceof \SqlSemantics\Platform\MySql\Statement\Relation\JoinedTable // => trueProperties§
public Relation $relationMethods§
public function __construct(public Relation $relation)Parameters
$relation | Relation | The escaped reference |
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFactDerives the escaped reference.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 2
- method-call FromScope::enter() line 44
- new FromScope line 44
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
OdbcJoinTestcalls