@@ 124-126 (lines=3) @@ | ||
121 | ||
122 | if ($this->values != NULL && count($this->values) > 0) { |
|
123 | $ret .= ' VALUES ' . ArrayObj::build($this->values); |
|
124 | } elseif ($this->set != NULL && count($this->set) > 0) { |
|
125 | $ret .= ' SET ' . SetOperation::build($this->set); |
|
126 | } elseif ($this->select != NULL && count($this->select) > 0) { |
|
127 | $ret .= ' ' . $this->select->build(); |
|
128 | } |
|
129 | ||
@@ 130-132 (lines=3) @@ | ||
127 | $ret .= ' ' . $this->select->build(); |
|
128 | } |
|
129 | ||
130 | if ($this->onDuplicateSet != NULL && count($this->onDuplicateSet) > 0) { |
|
131 | $ret .= ' ON DUPLICATE KEY UPDATE ' . SetOperation::build($this->onDuplicateSet); |
|
132 | } |
|
133 | ||
134 | return $ret; |
|
135 |