| @@ 106-117 (lines=12) @@ | ||
| 103 | ||
| 104 | return $result; |
|
| 105 | ||
| 106 | case self::UPDATE: |
|
| 107 | $result = $this->getUpdateClause(); |
|
| 108 | ||
| 109 | if ($where = $this->getWhereClause()) { |
|
| 110 | $result .= ' ' . $where; |
|
| 111 | } |
|
| 112 | ||
| 113 | if ($limit = $this->getLimitClause()) { |
|
| 114 | $result .= ' ' . $limit; |
|
| 115 | } |
|
| 116 | ||
| 117 | return $result; |
|
| 118 | ||
| 119 | case self::DELETE: |
|
| 120 | $result = $this->getDeleteClause(); |
|
| @@ 119-130 (lines=12) @@ | ||
| 116 | ||
| 117 | return $result; |
|
| 118 | ||
| 119 | case self::DELETE: |
|
| 120 | $result = $this->getDeleteClause(); |
|
| 121 | ||
| 122 | if ($where = $this->getWhereClause()) { |
|
| 123 | $result .= ' ' . $where; |
|
| 124 | } |
|
| 125 | ||
| 126 | if ($limit = $this->getLimitClause()) { |
|
| 127 | $result .= ' ' . $limit; |
|
| 128 | } |
|
| 129 | ||
| 130 | return $result; |
|
| 131 | ||
| 132 | default: |
|
| 133 | return ''; |
|