Skip to content

Commit 9d6ec4a

Browse files
committed
[RELEASE] Version 10.2.5 with non-empty bulk inserts
Resolves: https://projekte.in2code.de/issues/52346
2 parents 042e675 + a979846 commit 9d6ec4a

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# .gitattributes
22

3-
Build export-ignore
3+
/.github export-ignore
4+
/Build export-ignore
45
.gitkeep export-ignore
56
/.editorconfig export-ignore
67
/.gitattributes export-ignore

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# In2publish Core Change Log
22

3+
10.2.5:
4+
5+
- [META] Set the EM conf version number to 10.2.5
6+
- [GIT] Ignore the .github folder when creating a production dist
7+
- [COMMENT] Update the return annotation of findRedirectsByDynamicTarget
8+
- [BUGFIX] Ensure the rowCount is always an integer
9+
- [BUGFIX] Don't try to bulkInsert an empty data set
10+
- [RELEASE] Version 10.2.4 with bug fixes
11+
312
10.2.4:
413

514
- [META] Set the EM conf version number to 10.2.4

Classes/Domain/Repository/RunningRequestRepository.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ public function add(string $recordId, string $tableName, string $token): void
6363

6464
public function flush(): void
6565
{
66-
$this->connection->bulkInsert(self::RUNNING_REQUEST_TABLE_NAME, $this->inserts);
67-
$this->inserts = [];
66+
if (!empty($this->inserts)) {
67+
$this->connection->bulkInsert(self::RUNNING_REQUEST_TABLE_NAME, $this->inserts);
68+
$this->inserts = [];
69+
}
6870
}
6971

7072
/**

Classes/Features/RedirectsSupport/PageRecordRedirectEnhancer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function run(RecordInterface $record): void
112112
}
113113

114114
/**
115-
* @return array<RecordInterface>
115+
* @return array<array{local?: mixed, foreign?: mixed}>
116116
*/
117117
protected function findRedirectsByDynamicTarget(RecordInterface $record): array
118118
{

Classes/Utility/DatabaseUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public static function copyTableContents(Connection $fromDatabase, Connection $t
310310
$query = $fromDatabase->createQueryBuilder();
311311
$query->getRestrictions()->removeAll();
312312
$queryResult = $query->select('*')->from($tableName)->execute();
313-
$rows = $queryResult->rowCount();
313+
$rows = (int)$queryResult->rowCount();
314314
while ($row = $queryResult->fetch()) {
315315
if (1 !== static::insertRow($toDatabase, $tableName, $row)) {
316316
throw new In2publishCoreException('Failed to import row into "' . $tableName . '"', 1562570305);

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'title' => 'in2publish Core',
1010
'description' => 'Content publishing extension to connect stage and production server',
1111
'category' => 'plugin',
12-
'version' => '10.2.4',
12+
'version' => '10.2.5',
1313
'state' => 'stable',
1414
'uploadfolder' => 0,
1515
'createDirs' => '',

0 commit comments

Comments
 (0)