[BUGFIX] Follow up: Use strrpos to find last occurence 82/34682/2
authorAndreas Fernandez <andreas.fernandez@aspedia.de>
Wed, 26 Nov 2014 15:07:19 +0000 (16:07 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 27 Nov 2014 10:32:53 +0000 (11:32 +0100)
commit73e7e81326f9983b19c20bee56af553cab6f94ac
tree93c3f341ee40fdfe7a3b65d1a9e4c545f597c3cb
parentd8511d1a1a07730a01f6e173eea62c8e5a49e949
[BUGFIX] Follow up: Use strrpos to find last occurence

The patch #61654 introduced a bug, where strpos is mistakenly
used to get the last position of the currently processed field.
It must be changed to strrpos, otherwise the opening brace
breaks the SQL.

Also, a unit test for this case is added.

Resolves: #63345
Related: #61654
Releases: master, 6.2
Change-Id: Ibdbc7975b8f750060980f811cd0089b1a7b7de2b
Reviewed-on: http://review.typo3.org/34682
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/dbal/Classes/Database/SqlParser.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionOracleTest.php