ci: use docker compose #1407
Annotations
3 warnings
Infection:
src/Client/PsrClickHouseClient.php#L62
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function executeQueryWithParams(string $query, array $params, array $settings = []): void
{
- $this->executeRequest($this->sqlFactory->createWithParameters($query, $params), params: $params, settings: $settings);
+
}
public function select(string $query, Format $outputFormat, array $settings = []): Output
{
|
Infection:
src/Snippet/DatabaseSize.php#L34
Escaped Mutant for Mutator "Coalesce":
@@ @@
SELECT sum(bytes) AS size
FROM system.parts
WHERE active AND database=:database
- CLICKHOUSE, ['database' => $databaseName ?? Expression::new('currentDatabase()')], $format);
+ CLICKHOUSE, ['database' => Expression::new('currentDatabase()') ?? $databaseName], $format);
return (int) $currentDatabase->data[0]['size'];
}
}
|
Infection:
src/Sql/ValueFormatter.php#L99
Escaped Mutant for Mutator "UnwrapArrayMap":
@@ @@
throw UnsupportedParamValue::value($value);
}
$firstValue = $value[array_key_first($value)];
- $mapper = is_array($firstValue) ? fn($value): string => sprintf('(%s)', implode(',', array_map(fn($val) => $this->format($val), $value))) : fn($value): string => $value === null ? 'NULL' : $this->format($value);
+ $mapper = is_array($firstValue) ? fn($value): string => sprintf('(%s)', implode(',', $value)) : fn($value): string => $value === null ? 'NULL' : $this->format($value);
return implode(',', array_map($mapper, $value));
}
return $this->formatArray($value);
|