@@ 458-460 (lines=3) @@ | ||
455 | throw new Exception("Table name is invalid", E_ERROR); |
|
456 | } |
|
457 | ||
458 | if (isset($flags['joins']) && is_array($flags['joins'])) { |
|
459 | $this->sql .= " " . implode(" ", $flags['joins']); |
|
460 | } |
|
461 | ||
462 | if (! is_null($where) && is_array($where) && count($where)) { |
|
463 | $this->sql .= $this->where($where); |
|
@@ 505-507 (lines=3) @@ | ||
502 | return null; |
|
503 | } |
|
504 | ||
505 | if (isset($flags['joins']) && is_array($flags['joins'])) { |
|
506 | $this->sql .= " " . implode(" ", $flags['joins']); |
|
507 | } |
|
508 | ||
509 | if (! is_null($where) && is_array($where) && count($where)) { |
|
510 | $this->sql .= $this->where($where); |
|
@@ 641-644 (lines=4) @@ | ||
638 | if (! is_null($table_name) && is_string($table_name)) { |
|
639 | $this->sql .= $table_name; |
|
640 | ||
641 | if (isset($flags['joins'])) { |
|
642 | $this->sql .= " " . implode(" ", $flags['joins']); |
|
643 | unset($flags['joins']); |
|
644 | } |
|
645 | ||
646 | $this->sql .= " SET "; |
|
647 | } else { |