[BUGFIX] Correct SQL condition syntax 94/38894/2 master
authorThomas Maroschik <tmaroschik@dfau.de>
Fri, 24 Apr 2015 10:02:59 +0000 (12:02 +0200)
committerThomas Maroschik <tmaroschik@dfau.de>
Fri, 24 Apr 2015 10:08:42 +0000 (12:08 +0200)
A concatenated 'AND' caused incorrect SQL syntax. Changing
the concatenation to ' AND ' correctly formats the syntax.

Thanks to Claus Due for reporting that bug!

Change-Id: Ic6e435eab4f749507c79ef545c526feb194451b6
Reviewed-on: http://review.typo3.org/38894
Reviewed-by: Thomas Maroschik <tmaroschik@dfau.de>
Tested-by: Thomas Maroschik <tmaroschik@dfau.de>
Classes/Provider/AbstractUuidProvider.php

index 142f73a..7d889f9 100644 (file)
@@ -217,7 +217,7 @@ class AbstractUuidProvider implements \Maroschik\Identity\Provider\ProviderInter
                $row = $this->db->exec_SELECTgetSingleRow(
                        $identityField,
                        $this->identityTable,
-                               'foreign_tablename = ' . $this->db->fullQuoteStr($tablename, $this->identityTable) . 'AND' .
+                               'foreign_tablename = ' . $this->db->fullQuoteStr($tablename, $this->identityTable) . ' AND ' .
                                'foreign_uid = ' . $this->db->fullQuoteStr($uid, $this->identityTable)
                );
                if (!$row) {
@@ -478,4 +478,4 @@ class AbstractUuidProvider implements \Maroschik\Identity\Provider\ProviderInter
                $this->flushCache();
        }
 
-}
\ No newline at end of file
+}