502 'HAVING COUNT(RDEF) > 10') |
502 'HAVING COUNT(RDEF) > 10') |
503 self.assertListEqual(rset.rows, |
503 self.assertListEqual(rset.rows, |
504 [[u'description_format', 12], |
504 [[u'description_format', 12], |
505 [u'description', 13], |
505 [u'description', 13], |
506 [u'name', 15], |
506 [u'name', 15], |
507 [u'created_by', 40], |
507 [u'created_by', 41], |
508 [u'creation_date', 40], |
508 [u'creation_date', 41], |
509 [u'cw_source', 40], |
509 [u'cw_source', 41], |
510 [u'cwuri', 40], |
510 [u'cwuri', 41], |
511 [u'in_basket', 40], |
511 [u'in_basket', 41], |
512 [u'is', 40], |
512 [u'is', 41], |
513 [u'is_instance_of', 40], |
513 [u'is_instance_of', 41], |
514 [u'modification_date', 40], |
514 [u'modification_date', 41], |
515 [u'owned_by', 40]]) |
515 [u'owned_by', 41]]) |
516 |
516 |
517 def test_select_aggregat_having_dumb(self): |
517 def test_select_aggregat_having_dumb(self): |
518 # dumb but should not raise an error |
518 # dumb but should not raise an error |
519 rset = self.execute('Any U,COUNT(X) GROUPBY U ' |
519 rset = self.execute('Any U,COUNT(X) GROUPBY U ' |
520 'WHERE U eid %(x)s, X owned_by U ' |
520 'WHERE U eid %(x)s, X owned_by U ' |