|
@@ -39,22 +39,22 @@ |
|
|
block discarded – undo |
|
39
|
39
|
} |
|
40
|
40
|
|
|
41
|
41
|
public function md5($input) { |
|
42
|
|
- return new QueryFunction('MD5(' . $this->helper->quoteColumnName($input) . ')'); |
|
|
42
|
+ return new QueryFunction('MD5('.$this->helper->quoteColumnName($input).')'); |
|
43
|
43
|
} |
|
44
|
44
|
|
|
45
|
45
|
public function concat($x, $y) { |
|
46
|
|
- return new QueryFunction('CONCAT(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')'); |
|
|
46
|
+ return new QueryFunction('CONCAT('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')'); |
|
47
|
47
|
} |
|
48
|
48
|
|
|
49
|
49
|
public function substring($input, $start, $length = null) { |
|
50
|
50
|
if ($length) { |
|
51
|
|
- return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ', ' . $this->helper->quoteColumnName($length) . ')'); |
|
|
51
|
+ return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).', '.$this->helper->quoteColumnName($length).')'); |
|
52
|
52
|
} else { |
|
53
|
|
- return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ')'); |
|
|
53
|
+ return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).')'); |
|
54
|
54
|
} |
|
55
|
55
|
} |
|
56
|
56
|
|
|
57
|
57
|
public function sum($field) { |
|
58
|
|
- return new QueryFunction('SUM(' . $this->helper->quoteColumnName($field) . ')'); |
|
|
58
|
+ return new QueryFunction('SUM('.$this->helper->quoteColumnName($field).')'); |
|
59
|
59
|
} |
|
60
|
60
|
} |
Please login to merge, or discard this patch.