* Lots of non-functional changes (to comply with old patch)
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_db.php
index d87190f..66f90db 100755 (executable)
@@ -1000,7 +1000,7 @@ class t3lib_DB {
        function admin_get_fields($tableName)   {
                $output = array();
 
-               $columns_res = mysql_query('SHOW columns FROM `'.$tableName.'`', $this->link);
+               $columns_res = mysql_query('SHOW COLUMNS FROM `'.$tableName.'`', $this->link);
                while($fieldRow = mysql_fetch_assoc($columns_res))      {
                        $output[$fieldRow['Field']] = $fieldRow;
                }
@@ -1018,7 +1018,7 @@ class t3lib_DB {
        function admin_get_keys($tableName)     {
                $output = array();
 
-               $keyRes = mysql_query('SHOW keys FROM `'.$tableName.'`', $this->link);
+               $keyRes = mysql_query('SHOW KEYS FROM `'.$tableName.'`', $this->link);
                while($keyRow = mysql_fetch_assoc($keyRes))     {
                        $output[] = $keyRow;
                }