forked from extern/egroupware
search: allow aliases in the retrived columns
This commit is contained in:
parent
622bb81b07
commit
72aa737bc4
@ -523,6 +523,7 @@ class so_sql
|
|||||||
}
|
}
|
||||||
else // only the specified columns
|
else // only the specified columns
|
||||||
{
|
{
|
||||||
|
if (stristr($col,'as')) $col = preg_replace('/^.*as +([a-z0-9_]+) *$/i','\\1',$col);
|
||||||
$cols[$col] = $col;
|
$cols[$col] = $col;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user