[BUGFIX] DBAL: Properly CAST table.field identifier within FIND_IN_SET() 52/43952/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 9 Oct 2015 20:37:54 +0000 (22:37 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 9 Oct 2015 20:45:14 +0000 (22:45 +0200)
commit0fb733ea96da0a7cb8f55c84a40089aa12f85f9b
tree23e748c704a780493718e0142b9873f526781389
parentbfe0163c2ed115801087770611e399d0f04565f7
[BUGFIX] DBAL: Properly CAST table.field identifier within FIND_IN_SET()

The FIND_IN_SET compatibility method on PostgreSQL requires casting
values to string before being called to avoid comparing incompatible
types. Allow the query to be rewritten when the table- and fieldname
are given within the FIND_IN_SET() function.

Resolves: #70556
Releases: master
Change-Id: I27aeb966c09ce1af282777538f0dba1de23ce2f7
Reviewed-on: http://review.typo3.org/43952
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php