| @@ 137-139 (lines=3) @@ | ||
| 134 | { |
|
| 135 | $ret = 'DELETE ' . OptionsArray::build($this->options); |
|
| 136 | ||
| 137 | if ($this->columns != null && count($this->columns) > 0) { |
|
| 138 | $ret .= ' ' . ExpressionArray::build($this->columns); |
|
| 139 | } |
|
| 140 | if ($this->from != null && count($this->from) > 0) { |
|
| 141 | $ret .= ' FROM ' . ExpressionArray::build($this->from); |
|
| 142 | } |
|
| @@ 140-142 (lines=3) @@ | ||
| 137 | if ($this->columns != null && count($this->columns) > 0) { |
|
| 138 | $ret .= ' ' . ExpressionArray::build($this->columns); |
|
| 139 | } |
|
| 140 | if ($this->from != null && count($this->from) > 0) { |
|
| 141 | $ret .= ' FROM ' . ExpressionArray::build($this->from); |
|
| 142 | } |
|
| 143 | if ($this->using != null && count($this->using) > 0) { |
|
| 144 | $ret .= ' USING ' . ExpressionArray::build($this->using); |
|
| 145 | } |
|
| @@ 143-145 (lines=3) @@ | ||
| 140 | if ($this->from != null && count($this->from) > 0) { |
|
| 141 | $ret .= ' FROM ' . ExpressionArray::build($this->from); |
|
| 142 | } |
|
| 143 | if ($this->using != null && count($this->using) > 0) { |
|
| 144 | $ret .= ' USING ' . ExpressionArray::build($this->using); |
|
| 145 | } |
|
| 146 | if ($this->where != null && count($this->where) > 0) { |
|
| 147 | $ret .= ' WHERE ' . Condition::build($this->where); |
|
| 148 | } |
|
| @@ 149-151 (lines=3) @@ | ||
| 146 | if ($this->where != null && count($this->where) > 0) { |
|
| 147 | $ret .= ' WHERE ' . Condition::build($this->where); |
|
| 148 | } |
|
| 149 | if ($this->order != null && count($this->order) > 0) { |
|
| 150 | $ret .= ' ORDER BY ' . ExpressionArray::build($this->order); |
|
| 151 | } |
|
| 152 | if ($this->limit != null && strlen($this->limit) > 0) { |
|
| 153 | $ret .= ' LIMIT ' . Limit::build($this->limit); |
|
| 154 | } |
|
| @@ 208-210 (lines=3) @@ | ||
| 205 | $ret .= ' IGNORE ' . $this->ignore_number . ' ' . $this->lines_rows; |
|
| 206 | } |
|
| 207 | ||
| 208 | if ($this->col_name_or_user_var !== null && count($this->col_name_or_user_var) > 0) { |
|
| 209 | $ret .= ' ' . ExpressionArray::build($this->col_name_or_user_var); |
|
| 210 | } |
|
| 211 | ||
| 212 | if ($this->set !== null && count($this->set) > 0) { |
|
| 213 | $ret .= ' SET ' . SetOperation::build($this->set); |
|