add "keep_index" option in stream store #1108
mutation-tests-diff.yml
on: pull_request
Matrix: Mutation tests on diff
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']));
}
});
|