[BUGFIX] Cannot use equal operator on data type text
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Index / FileIndexRepository.php
index f7627b8..1dae720 100644 (file)
@@ -323,7 +323,7 @@ class FileIndexRepository implements SingletonInterface {
                        $where = 'uid=' . (int)$file->getUid();
                } else {
                        $where = sprintf(
-                               'storage=%u AND identifier=%s',
+                               'storage=%u AND identifier LIKE %s',
                                (int)$file->getStorage()->getUid(),
                                $this->getDatabaseConnection()->fullQuoteStr($file->_getPropertyRaw('identifier'), $this->table)
                        );