From 72aa737bc4760cee8c63ec748ef43918e0913c08 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 1 May 2005 11:38:59 +0000 Subject: [PATCH] search: allow aliases in the retrived columns --- etemplate/inc/class.so_sql.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 6b2b875790..9005afa1b7 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -523,6 +523,7 @@ class so_sql } else // only the specified columns { + if (stristr($col,'as')) $col = preg_replace('/^.*as +([a-z0-9_]+) *$/i','\\1',$col); $cols[$col] = $col; } }