dblayeroo : do not generate an error if a comma is provided to GROUP_CONCAT
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4288 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -1551,7 +1551,12 @@ class dblayeroo
|
||||
$this->DBException (
|
||||
"Invalid aliasNames provided (not string and not array)");
|
||||
if (is_string ($columnNames))
|
||||
{
|
||||
// Remove the GROUP_CONCAT(col,',') as ',' is the default and the comma
|
||||
// will be counted in error
|
||||
$columnNames = str_replace (",','", "", $columnNames);
|
||||
$columnNames = explode (",", $columnNames);
|
||||
}
|
||||
if (is_string ($aliasNames))
|
||||
$aliasNames = explode (",", $aliasNames);
|
||||
if (count ($aliasNames) && count ($aliasNames) !== count ($columnNames))
|
||||
|
||||
Reference in New Issue
Block a user