diff --git a/ChangeLog b/ChangeLog index 95f340860..0dd455b36 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-08-02 Michal Čihař + * libraries/export/sql.php: Removed unused code. + 2004-08-01 Marc Delisle * tbl_change.php, libraries/relation.lib.php: bug 1001159, Commands out of sync on Insert diff --git a/libraries/export/sql.php b/libraries/export/sql.php index e2b91142a..93b6db9d9 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -11,29 +11,6 @@ error_reporting(E_ALL); */ $comment_marker = '-- '; -/** - * Returns $table's field types - * - * @param string the database name - * @param string the table name - * - * @return array the field types; key of array is PMA_backquote - * of the field name - * - * @access public - * - * This function exists because mysql_field_type() returns 'blob' - * even for 'text' fields. - */ -function PMA_fieldTypes($db, $table,$use_backquotes) { - PMA_DBI_select_db($db); - $table_def = PMA_DBI_query('SHOW FIELDS FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table)); - while ($row = PMA_DBI_fetch_assoc($table_def)) { - $types[PMA_backquote($row['Field'],$use_backquotes)] = ereg_replace('\\(.*', '', $row['Type']); - } - return $types; -} - /** * Outputs comment * @@ -473,10 +450,6 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) $buffer = ''; - // get the real types of the table's fields (in an array) - // the key of the array is the backquoted field name - $field_types = PMA_fieldTypes($db,$table,$use_backquotes); - // analyze the query to get the true column names, not the aliases // (this fixes an undefined index, also if Complete inserts // are used, we did not get the true column name in case of aliases)