Skip to content

add "keep_index" option in stream store #1108

add "keep_index" option in stream store

add "keep_index" option in stream store #1108

Triggered via pull request January 16, 2025 17:21
Status Failure
Total duration 1m 41s
Artifacts

mutation-tests-diff.yml

on: pull_request
Matrix: Mutation tests on diff
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
Mutation tests on diff (locked, 8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation tests on diff (locked, 8.3, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Mutation tests on diff (locked, 8.3, ubuntu-latest): src/Store/StreamDoctrineDbalStore.php#L321
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ return; } $this->executeSave($columns, $placeholders, $parameters, $types, $this->connection); - if ($this->config['use_index'] && $this->connection->getDatabasePlatform() instanceof PostgreSQLPlatform) { + if ($this->config['use_index'] || $this->connection->getDatabasePlatform() instanceof PostgreSQLPlatform) { $this->connection->executeStatement(sprintf("SELECT setval('%s', (SELECT MAX(id) FROM %s));", sprintf('%s_id_seq', $this->config['table_name']), $this->config['table_name'])); } });
Mutation tests on diff (locked, 8.3, ubuntu-latest): src/Store/StreamDoctrineDbalStore.php#L321
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ return; } $this->executeSave($columns, $placeholders, $parameters, $types, $this->connection); - if ($this->config['use_index'] && $this->connection->getDatabasePlatform() instanceof PostgreSQLPlatform) { + if (!$this->config['use_index'] && $this->connection->getDatabasePlatform() instanceof PostgreSQLPlatform) { $this->connection->executeStatement(sprintf("SELECT setval('%s', (SELECT MAX(id) FROM %s));", sprintf('%s_id_seq', $this->config['table_name']), $this->config['table_name'])); } });