Commit 85384488 authored by Andreas Wolf's avatar Andreas Wolf

[BUGFIX] #277: Wrong statement usage in import from queue

parent 689f1cbc
Pipeline #2795 passed with stages
in 4 minutes and 9 seconds
......@@ -195,7 +195,7 @@ class ImportExtensionsFromQueueTask extends Task
->execute();
$statement->execute();
return $statement->fetch(\PDO::FETCH_ASSOC);
return $statement->fetchColumn(0) > 0;
}
/**
......@@ -249,7 +249,7 @@ class ImportExtensionsFromQueueTask extends Task
$connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
$queryBuilder = $connectionPool->getQueryBuilderForTable($tableName);
$queryBuilder->insert($tableName)->values($insertExtension)->execute()->execute();
$queryBuilder->insert($tableName)->values($insertExtension)->execute();
return $connectionPool->getConnectionForTable($tableName)->lastInsertId($tableName);
}
......@@ -327,7 +327,7 @@ class ImportExtensionsFromQueueTask extends Task
$connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
$queryBuilder = $connectionPool->getQueryBuilderForTable($tableName);
$queryBuilder->insert($tableName)->values($insertVersion)->execute()->execute();
$queryBuilder->insert($tableName)->values($insertVersion)->execute();
return $connectionPool->getConnectionForTable($tableName)->lastInsertId($tableName);
}
......@@ -354,7 +354,6 @@ class ImportExtensionsFromQueueTask extends Task
->where(
$queryBuilder->expr()->eq('uid', $extUid)
)
->execute()
->execute();
}
......@@ -409,8 +408,7 @@ class ImportExtensionsFromQueueTask extends Task
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('tx_terfe2_domain_model_relation');
$queryBuilder->insert('tx_terfe2_domain_model_relation')->values($insertRelation)
->execute()->execute();
$queryBuilder->insert('tx_terfe2_domain_model_relation')->values($insertRelation)->execute();
}
}
......@@ -423,7 +421,6 @@ class ImportExtensionsFromQueueTask extends Task
->where(
$queryBuilder->expr()->eq('uid', $versionUid)
)
->execute()
->execute();
}
......@@ -519,8 +516,7 @@ class ImportExtensionsFromQueueTask extends Task
$tableName = 'tx_terfe2_domain_model_author';
$queryBuilder = $connectionPool->getQueryBuilderForTable($tableName);
$queryBuilder->insert($tableName)->values($insertAuthor)
->execute()->execute();
$queryBuilder->insert($tableName)->values($insertAuthor)->execute();
return $connectionPool->getConnectionForTable($tableName)->lastInsertId($tableName);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment