diff --git a/CHANGELOG.md b/CHANGELOG.md index 55fa4d2c..b9192f35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ - Enh #268: Rename `batchInsert()` to `insertBatch()` in `DMLQueryBuilder` and change parameters from `$table, $columns, $rows` to `$table, $rows, $columns = []` (@Tigrov) - Enh #260: Support `Traversable` values for `DMLQueryBuilder::batchInsert()` method with empty columns (@Tigrov) -- Enh #255: Implement `SqlParser` and `ExpressionBuilder` driver classes (@Tigrov) +- Enh #255, #321: Implement and use `SqlParser` class (@Tigrov) - New #236: Implement `ColumnSchemaInterface` classes according to the data type of database table columns for type casting performance. Related with yiisoft/db#752 (@Tigrov) - Chg #272: Replace call of `SchemaInterface::getRawTableName()` to `QuoterInterface::getRawTableName()` (@Tigrov) diff --git a/src/Builder/ExpressionBuilder.php b/src/Builder/ExpressionBuilder.php deleted file mode 100644 index ad381158..00000000 --- a/src/Builder/ExpressionBuilder.php +++ /dev/null @@ -1,16 +0,0 @@ - InConditionBuilder::class, LikeCondition::class => LikeConditionBuilder::class, - Expression::class => ExpressionBuilder::class, ]; } } diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index 3bc6f400..fec71c28 100644 --- a/src/QueryBuilder.php +++ b/src/QueryBuilder.php @@ -37,4 +37,9 @@ protected function prepareBinary(string $binary): string { return "HEXTORAW('" . bin2hex($binary) . "')"; } + + protected function createSqlParser(string $sql): SqlParser + { + return new SqlParser($sql); + } }