search: allow aliases in the retrived columns

This commit is contained in:
Ralf Becker 2005-05-01 11:38:59 +00:00
parent 622bb81b07
commit 72aa737bc4

View File

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