add config options for charset in Import and Export

This commit is contained in:
Crack
2010-07-20 12:42:18 +02:00
parent fab6eb09ea
commit c0ba57f040
4 changed files with 7 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ $cfg_db['Import']['format'] = array(
'docsql', // DocSQL
'ldi', // CSV using LOAD DATA
'sql'); // SQL
$cfg_db['Import']['charset'] = array_merge(array(''), $GLOBALS['cfg']['AvailableCharsets']);
$cfg_db['Import']['sql_compatibility'] = $cfg_db['Export']['sql_compatibility'] = array(
'NONE', 'ANSI', 'DB2', 'MAXDB', 'MYSQL323', 'MYSQL40', 'MSSQL', 'ORACLE',
// removed; in MySQL 5.0.33, this produces exports that

View File

@@ -223,6 +223,7 @@ $strConfigIgnoreMultiSubmitErrors_desc = __('If enabled, phpMyAdmin continues co
$strConfigIgnoreMultiSubmitErrors_name = __('Ignore multiple statement errors');
$strConfigImport_allow_interrupt_desc = __('Allow interrupt of import in case script detects it is close to time limit. This might be good way to import large files, however it can break transactions.');
$strConfigImport_allow_interrupt_name = __('Partial import: allow interrupt');
$strConfigImport_charset_name = __('Character set of the file');
$strConfigImport_csv_col_names_name = __('Lines terminated by');
$strConfigImport_csv_enclosed_name = __('Columns enclosed by');
$strConfigImport_csv_escaped_name = __('Columns escaped by');

View File

@@ -75,8 +75,9 @@ $forms['Servers']['Server_tracking'] = array('Servers' => array(1 => array(
$forms['Features']['Import_export'] = array(
'UploadDir',
'SaveDir',
'RecodingEngine',
'RecodingEngine' => ':group',
'IconvExtraParams',
':group:end',
'ZipDump',
'GZipDump',
'BZipDump',
@@ -191,6 +192,7 @@ $forms['Main_frame']['Tabs'] = array(
'QueryWindowDefTab');
$forms['Import']['Import_defaults'] = array('Import' => array(
'format',
'charset',
'allow_interrupt',
'skip_queries'));
$forms['Import']['Sql'] = array('Import' => array(

View File

@@ -103,6 +103,7 @@ $forms['Main_frame']['Tabs'] = array(
'DefaultTabTable');
$forms['Import']['Import_defaults'] = array(
'Import/format',
'Import/charset',
'Import/allow_interrupt',
'Import/skip_queries');
$forms['Import']['Sql'] = array(
@@ -137,6 +138,7 @@ $forms['Import']['Open_Document'] = array(
$forms['Export']['Export_defaults'] = array(
'Export/format',
'Export/compression',
'Export/charset',
'Export/asfile',
'Export/remember_file_template',
'Export/file_template_table',