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.

Reading an ODBC escapedoctest
$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 // => true

Properties§

public Relation $relation

Methods§

public function __construct(public Relation $relation)

Parameters

$relationRelationThe escaped reference
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFact

Derives the escaped reference.

Parameters

$derivationDerivation
$environmentEnvironment
Calls 2
public function render(Output $out): void

Writes the escape.

Parameters

$outOutput
Calls 1

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1
Type checks 2
Type declarations 1