Skip to content

Commit

Permalink
patch: running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glushkovds committed Sep 13, 2024
1 parent 7a0f060 commit 2762a79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions docker-compose.test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:

php:
Expand Down Expand Up @@ -30,4 +28,4 @@ services:
- ./tests/docker/clickhouse02:/etc/clickhouse-server

zookeeper:
image: zookeeper:3.7
image: zookeeper:3.7
2 changes: 1 addition & 1 deletion docs/howto_run_local_test.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```shell
sudo sh -c "docker compose -f docker-compose.test.yaml down --remove-orphans -v && docker compose -f docker-compose.test.yaml rm -f -v && docker compose -f docker-compose.test.yaml run php sh /src/tests.bootstrap.sh"
sudo sh -c "docker compose -f docker-compose.test.yaml run php sh /src/tests.bootstrap.sh; docker compose -f docker-compose.test.yaml down --remove-orphans -v"
```
2 changes: 1 addition & 1 deletion src/QueryGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public static function prepareParameters(string $sql): string
/** @inheritDoc */
protected function compileDeleteWithoutJoins(Builder $query, $table, $where): string
{
return "alter table {$table} delete {$where}";
return "alter table $table delete $where";
}
}

0 comments on commit 2762a79

Please sign in to comment.