dbayeroo : manage correctely the GROUP_CONCAT and the commas on string
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4290 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -1047,4 +1047,15 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase
|
||||
'groups' => 'group1,group2'
|
||||
)), $res);
|
||||
}
|
||||
|
||||
public function test_GROUPCONCATwithAlias3 ()
|
||||
{
|
||||
$tbl1 = $this->tbl1 ();
|
||||
$res = $tbl1->select ()
|
||||
->displayAdd ("GROUP_CONCAT(group,' ')", "groups")
|
||||
->execute ();
|
||||
$this->assertSame (array (array (
|
||||
'groups' => 'group1 group2'
|
||||
)), $res);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user