I have found a better solution for https://sourceforge.net/tracker/?func=detail&aid=2496403&group_id=23067&atid=377410
Plus I moved the trimming of the conditions to PMA_getUniqueCondition()
Merged in subversion, thanks.
Merged in subversion, thanks.