From: stronk7 Date: Mon, 4 Sep 2006 22:42:56 +0000 (+0000) Subject: Using the standard sql_as() function, although it could be not used. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6b4b356f826c1d101878be2718c2ef7032d96ef1;p=moodle.git Using the standard sql_as() function, although it could be not used. --- diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index 915353d246..baf54ac983 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -18,14 +18,7 @@ /// fullpivot indicate if the whole pivot should be compared agasint the db or just the first letter /// printpivot indicate if the pivot should be printed or not - switch ($CFG->dbtype) { - case 'postgres7': - $as = 'as'; - break; - case 'mysql': - $as = ''; - break; - } + $as = sql_as(); ///To use or no the AS keyword on column aliases switch ( $sortkey ) { case "CREATION":