User tests: Successful: Unsuccessful:
Pull Request for Issue:
__toString() generates different string.__toString()Test by travis.
Code review.
N/A
| Status | New | ⇒ | Pending |
| Category | ⇒ | Postgresql Libraries Unit Tests |
On joomla that uses postgreSQL:
php > $db = JFactory::getDbo();
php > $q = $db->getQuery(true)->update('#__content a')->set('hits = 1')->innerJoin('#__categories c ON a.catid = c.id')->where('c.id = 5');
php > echo $q;
UPDATE #__content a
SET hits = 1
FROM #__categories c
WHERE c.id = 5 AND a.catid = c.id
php > echo $q;
UPDATE #__content a
SET hits = 1
FROM #__categories c,#__categories c
WHERE c.id = 5 AND a.catid = c.id AND a.catid = c.id
php > echo $q;
UPDATE #__content a
SET hits = 1
FROM #__categories c,#__categories c,#__categories c
WHERE c.id = 5 AND a.catid = c.id AND a.catid = c.id AND a.catid = c.id| Title |
|
||||||
| Title |
|
||||||
I have tested this item
I got always the same malformed query and this patch corrected the problem. Thanks!
I have tested this item
Thanks a lot for the tests.
| Status | Pending | ⇒ | Ready to Commit |
| Labels | |||
RTC
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-01-14 23:58:22 |
| Closed_By | ⇒ | wilsonge |
Nice catch!! Thanks :)
Can you give an example of a query that returns a different string on every call ?
which part of the query is different ?