]> git.mjollnir.org Git - moodle.git/commitdiff
Using the standard sql_as() function, although it could be not used.
authorstronk7 <stronk7>
Mon, 4 Sep 2006 22:42:56 +0000 (22:42 +0000)
committerstronk7 <stronk7>
Mon, 4 Sep 2006 22:42:56 +0000 (22:42 +0000)
mod/glossary/sql.php

index 915353d2460621ab0ffc87737418fe848aaf5873..baf54ac9839e5381d9a172b5fc28f0773a6ff1c4 100644 (file)
 
 /// 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":