88use Traversable ;
99use Yiisoft \Db \Expression \Value \Param ;
1010use Yiisoft \Db \Constant \DataType ;
11- use Yiisoft \Db \Exception \Exception ;
12- use InvalidArgumentException ;
13- use Yiisoft \Db \Exception \InvalidConfigException ;
1411use Yiisoft \Db \Exception \NotSupportedException ;
1512use Yiisoft \Db \Expression \ExpressionBuilderInterface ;
1613use Yiisoft \Db \Expression \ExpressionInterface ;
2219
2320use function implode ;
2421use function is_string ;
25- use function str_contains ;
2622use function strtr ;
2723
2824/**
@@ -56,9 +52,6 @@ public function __construct(
5652 *
5753 * @param Like|NotLike $expression
5854 *
59- * @throws Exception
60- * @throws InvalidArgumentException
61- * @throws InvalidConfigException
6255 * @throws NotSupportedException
6356 */
6457 public function build (ExpressionInterface $ expression , array &$ params = []): string
@@ -102,9 +95,6 @@ public function build(ExpressionInterface $expression, array &$params = []): str
10295 /**
10396 * Prepare column to use in SQL.
10497 *
105- * @throws Exception
106- * @throws InvalidArgumentException
107- * @throws InvalidConfigException
10898 * @throws NotSupportedException
10999 */
110100 protected function prepareColumn (Like |NotLike $ condition , array &$ params ): string
@@ -115,21 +105,13 @@ protected function prepareColumn(Like|NotLike $condition, array &$params): strin
115105 return $ this ->queryBuilder ->buildExpression ($ column , $ params );
116106 }
117107
118- if (!str_contains ($ column , '( ' )) {
119- return $ this ->queryBuilder ->getQuoter ()->quoteColumnName ($ column );
120- }
121-
122- return $ column ;
108+ return $ this ->queryBuilder ->getQuoter ()->quoteColumnName ($ column );
123109 }
124110
125111 /**
126112 * Prepare value to use in SQL.
127113 *
128- * @throws Exception
129- * @throws InvalidArgumentException
130- * @throws InvalidConfigException
131114 * @throws NotSupportedException
132- * @return string
133115 */
134116 protected function preparePlaceholderName (
135117 string |Stringable |int |ExpressionInterface $ value ,
0 commit comments