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:
2018-07-15 18:29:51 +00:00
parent e5c67e779e
commit daee67d401
2 changed files with 47 additions and 7 deletions

View File

@@ -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);
}
}