diff --git a/InventoryIndexer/Model/ResourceModel/UpdateIsSalable.php b/InventoryIndexer/Model/ResourceModel/UpdateIsSalable.php index 4b2675f369d6..e2f0d7f39651 100644 --- a/InventoryIndexer/Model/ResourceModel/UpdateIsSalable.php +++ b/InventoryIndexer/Model/ResourceModel/UpdateIsSalable.php @@ -51,7 +51,7 @@ public function execute(IndexName $indexName, array $dataForUpdate, string $conn $connection = $this->resourceConnection->getConnection($connectionName); $tableName = $this->indexNameResolver->resolveName($indexName); foreach ($dataForUpdate as $sku => $isSalable) { - $connection->update($tableName, [IndexStructure::IS_SALABLE => $isSalable], ['sku = ?' => $sku]); + $connection->update($tableName, [IndexStructure::IS_SALABLE => $isSalable], ['sku = ?' => (string)$sku]); } } }