Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
43 | public function lateralJoinSubSelect($join, $spec, $name, $cond = null, array $bind = array()) |
||
44 | { |
||
45 | $join = strtoupper(ltrim("$join JOIN LATERAL")); |
||
46 | $this->addTableRef("$join (SELECT ...) AS", $name); |
||
47 | |||
48 | $spec = $this->subSelect($spec, ' '); |
||
49 | $name = $this->quoter->quoteName($name); |
||
50 | $cond = $this->fixJoinCondition($cond, $bind); |
||
51 | |||
52 | $text = rtrim("$join ($spec ) $name $cond"); |
||
53 | return $this->addJoin(' ' . $text); |
||
54 | } |
||
55 | } |
||
56 |