GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update corresponding build method · phpmyadmin/sql-parser@22debcf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/Components
    • JoinKeyword.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Components/JoinKeyword.php‎

Copy file name to clipboardExpand all lines: src/Components/JoinKeyword.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ public static function build($component, array $options = array())
179179
{
180180
$ret = array();
181181
foreach ($component as $c) {
182-
$ret[] = array_search($c->type, static::$JOINS) . ' '
183-
. $c->expr . ' ON ' . Condition::build($c->on);
182+
$ret[] = array_search($c->type, static::$JOINS) . ' ' . $c->expr
183+
. (! empty($c->on)
184+
? ' ON ' . Condition::build($c->on)
185+
: ' USING ' . ArrayObj::build($c->using));
184186
}
185187
return implode(' ', $ret);
186188
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.