@@ -115,19 +115,19 @@ |
||
115 | 115 | */ |
116 | 116 | public function build() |
117 | 117 | { |
118 | - $ret = 'INSERT ' . $this->options |
|
119 | - . ' INTO ' . $this->into; |
|
118 | + $ret = 'INSERT '.$this->options |
|
119 | + . ' INTO '.$this->into; |
|
120 | 120 | |
121 | 121 | if ($this->values != NULL && count($this->values) > 0) { |
122 | - $ret .= ' VALUES ' . Array2d::build($this->values); |
|
122 | + $ret .= ' VALUES '.Array2d::build($this->values); |
|
123 | 123 | } elseif ($this->set != NULL && count($this->set) > 0) { |
124 | - $ret .= ' SET ' . SetOperation::build($this->set); |
|
124 | + $ret .= ' SET '.SetOperation::build($this->set); |
|
125 | 125 | } elseif ($this->select != NULL && count($this->select) > 0) { |
126 | - $ret .= ' ' . $this->select->build(); |
|
126 | + $ret .= ' '.$this->select->build(); |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | if ($this->onDuplicateSet != NULL && count($this->onDuplicateSet) > 0) { |
130 | - $ret .= ' ON DUPLICATE KEY UPDATE ' . SetOperation::build($this->onDuplicateSet); |
|
130 | + $ret .= ' ON DUPLICATE KEY UPDATE '.SetOperation::build($this->onDuplicateSet); |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | return $ret; |