?
Referenced as Pull Request for: # 10817
avatar izharaazmi
izharaazmi
28 Sep 2015

It is observed that the JDatabaseQuery::unionAll() method creates a JDatabaseQueryElement named unionAll see JDatabaseQuery::unionAll() which is never utilized when converting the JDatabaseQuery object to a real string query see JDatabaseQuery::__toString().
This results in an incorrect query string.

The unit test case uses Reflection class to get the value of unionAll element, which is not sufficient. Test case should be made as realistic as possible. see JDatabaseQueryTest::unionAllUnion()

There are multiple possible ways we can fix this, therefore I wanted to discuss it before making a PR.

avatar izharaazmi izharaazmi - open - 28 Sep 2015
avatar zero-24 zero-24 - change - 29 Sep 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 29 Sep 2015
Category Libraries Unit Tests
avatar gunjanpatel gunjanpatel - change - 15 Jul 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-07-15 06:01:50
Closed_By gunjanpatel
avatar joomla-cms-bot joomla-cms-bot - close - 15 Jul 2016
avatar gunjanpatel
gunjanpatel - comment - 15 Jul 2016
avatar gunjanpatel
gunjanpatel - comment - 15 Jul 2016

Closing as we have PR


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7970.

Add a Comment

Login with GitHub to post a comment