|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
parent::__construct($connection, $queryBuilder); |
|
44
|
44
|
|
|
45
|
45
|
$params = $connection->getInner()->getParams(); |
|
46
|
|
- $this->collation = $params['collation'] ?? (($params['charset'] ?? 'utf8') . '_general_ci'); |
|
|
46
|
+ $this->collation = $params['collation'] ?? (($params['charset'] ?? 'utf8').'_general_ci'); |
|
47
|
47
|
} |
|
48
|
48
|
|
|
49
|
49
|
/** |
|
@@ -52,7 +52,7 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
public function iLike($x, $y, $type = null): string { |
|
53
|
53
|
$x = $this->helper->quoteColumnName($x); |
|
54
|
54
|
$y = $this->helper->quoteColumnName($y); |
|
55
|
|
- return $this->expressionBuilder->comparison($x, ' COLLATE ' . $this->collation . ' LIKE', $y); |
|
|
55
|
+ return $this->expressionBuilder->comparison($x, ' COLLATE '.$this->collation.' LIKE', $y); |
|
56
|
56
|
} |
|
57
|
57
|
|
|
58
|
58
|
/** |
|
@@ -66,7 +66,7 @@ discard block |
|
|
block discarded – undo |
|
66
|
66
|
public function castColumn($column, $type): IQueryFunction { |
|
67
|
67
|
switch ($type) { |
|
68
|
68
|
case IQueryBuilder::PARAM_STR: |
|
69
|
|
- return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS CHAR)'); |
|
|
69
|
+ return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS CHAR)'); |
|
70
|
70
|
default: |
|
71
|
71
|
return parent::castColumn($column, $type); |
|
72
|
72
|
} |
Please login to merge, or discard this patch.