Language updates, and a missing commit from rabus (librarires/* files

dealing with column_comments => column_info.). I didn't want to interfere,
but I had updated my cvs and had problems with the comments, so I finished
the search&replace-job. Maybe you want to look at the
config_import.lib-change, which is the only not-straight-ahead
search&replace operation.
This commit is contained in:
Garvin Hicking
2003-02-25 15:59:26 +00:00
parent 97f5cb8ea2
commit 8718ab8275
6 changed files with 67 additions and 57 deletions

View File

@@ -23,6 +23,11 @@ $Source$
2003-02-25 Garvin Hicking <me@supergarv.de> 2003-02-25 Garvin Hicking <me@supergarv.de>
* tbl_properties.inc.php3: Fixed duped display of comments due to * tbl_properties.inc.php3: Fixed duped display of comments due to
merging diff conflict. merging diff conflict.
* lang/german*: German translations, only missing transformation
descriptions. They shouldn't be translated at that early point, I guess.
* libraries/config_import.lib.php3, libraries/relation.lib.php3,
libraries/transformations.lib.php3: 'column_info', they were somehow
not included in rabus' commit?!
2003-02-24 Alexander M. Turek <rabus@users.sourceforge.net> 2003-02-24 Alexander M. Turek <rabus@users.sourceforge.net>
* common.lib.php3: Backwards compatibility. * common.lib.php3: Backwards compatibility.

View File

@@ -580,25 +580,25 @@ $strYes = 'Ja';
$strZeroRemovesTheLimit = 'Anmerkung: Der Wert 0 (null) entfernt die Beschr<68>nkung.'; $strZeroRemovesTheLimit = 'Anmerkung: Der Wert 0 (null) entfernt die Beschr<68>nkung.';
$strZip = 'Zip-komprimiert'; $strZip = 'Zip-komprimiert';
$strRowsModeFlippedHorizontal = 'horizontal (rotated headers)';//to translate $strRowsModeFlippedHorizontal = 'horizontal (gedrehte Bezeichner)';
$strQueryTime = 'Query took %01.4f sec';//to translate $strQueryTime = 'Die Abfrage dauerte %01.4f sek';
$strDumpComments = 'Include column comments as inline SQL-comments';//to translate $strDumpComments = 'Spaltenkommentare als SQL-Kommentare einbetten';
$strDBComment = 'Database comment: ';//to translate $strDBComment = 'Datenbankkommentar: ';
$strQueryFrame = 'Query window';//to translate $strQueryFrame = 'Abfragefenster';
$strQueryFrameDebug = 'Debugging information';//to translate $strQueryFrameDebug = 'Debugging Information';
$strQueryFrameDebugBox = 'Active variables for the query form:\nDB: %s\nTable: %s\nServer: %s\n\nCurrent variables for the query form:\nDB: %s\nTable: %s\nServer: %s\n\nOpener location: %s\nFrameset location: %s.';//to translate $strQueryFrameDebugBox = 'Aktive Variablen des Abfrageformulars:\nDB: %s\nTabellle: %s\nServer: %s\n\nMomentate Variablen des Abfrageofrmulars:\nDB: %s\nTabelle: %s\nServer: %s\n\nQuelle des <20>ffnenden Fensters: %s\nQuelle des Framesets: %s.';
$strQuerySQLHistory = 'SQL-history';//to translate $strQuerySQLHistory = 'SQL-Verlaufsprotokoll';
$strMIME_MIMEtype = 'MIME-type';//to translate $strMIME_MIMEtype = 'MIME-Typ';
$strMIME_transformation = 'Browser transformation';//to translate $strMIME_transformation = 'Darstellungsumwandlung';
$strMIME_transformation_options = 'Transformation options';//to translate $strMIME_transformation_options = 'Umwandlungsoptionen';
$strMIME_transformation_options_note = 'Please enter the values for transformation options using this format: \'a\',\'b\',\'c\'...<br />If you ever need to put a backslash ("\") or a single quote ("\'") amongst those values, backslashes it (for example \'\\\\xyz\' or \'a\\\'b\').';//to translate $strMIME_transformation_options_note = 'Bitte die Werte f<>r die Umwandlungsoptionen in folgendem Format angeben:: \'a\',\'b\',\'c\'...<br />Wann immer Sie ein Backslash ("\") oder ein einfaches Anf<6E>hrungszeichen ("\'") verwenden,<br \>setzen Sie bitte ein Backslash vor das Zeichen. (z.B.: \'\\\\xyz\' or \'a\\\'b\').';
$strMIME_transformation_note = 'For a list of available transformation options and their MIME-type transformations, click on %stransformation descriptions%s';//to translate $strMIME_transformation_note = 'Eine Liste aller verf<72>gbaren MIME-Typen Umwandlungen und deren Optionen, klicken Sie bitte auf %sUmwandlungen%s';
$strMIME_available_mime = 'Available MIME-types';//to translate $strMIME_available_mime = 'Verf<EFBFBD>gbare MIME-Typen';
$strMIME_available_transform = 'Available transformations';//to translate $strMIME_available_transform = 'Verf<EFBFBD>gbare Umwandlungen';
$strMIME_without = 'MIME-types printed in italics do not have a seperate transformation function';//to translate $strMIME_without = 'Kursiv dargestellte MIME-Typen besitzen keine untergliederten Umwandlungen.';
$strMIME_description = 'Description';//to translate $strMIME_description = 'Beschreibung';
$strMIME_nodescription = 'No Description is available for this transformation.<br />Please ask the author, what %s does.';//to translate $strMIME_nodescription = 'F<EFBFBD>r diese Umwandlung ist keine Beschreibung verf<72>gar.<br />Bitte fragen Sie den Authoren der Funktion namens %s.';
$strMIME_file = 'Filename';//to translate $strMIME_file = 'Dateiname';
$strTransformation_image_jpeg__plain = 'Takes an imagefile and outputs a link for it. First options argument is a possible prepended string like http://...';//to translate $strTransformation_image_jpeg__plain = 'Takes an imagefile and outputs a link for it. First options argument is a possible prepended string like http://...';//to translate
$strTransformation_text_plain__formatted = 'Preserves original formatting of the field. No Escaping is done.';//to translate $strTransformation_text_plain__formatted = 'Preserves original formatting of the field. No Escaping is done.';//to translate
$strTransformation_text_plain__unformatted = 'Displays HTML code as HTML entities. No HTML formatting is shown.';//to translate $strTransformation_text_plain__unformatted = 'Displays HTML code as HTML entities. No HTML formatting is shown.';//to translate

View File

@@ -581,25 +581,25 @@ $strYes = 'Ja';
$strZeroRemovesTheLimit = 'Anmerkung: Der Wert 0 (null) entfernt die Beschränkung.'; $strZeroRemovesTheLimit = 'Anmerkung: Der Wert 0 (null) entfernt die Beschränkung.';
$strZip = 'Zip-komprimiert'; $strZip = 'Zip-komprimiert';
$strRowsModeFlippedHorizontal = 'horizontal (rotated headers)';//to translate $strRowsModeFlippedHorizontal = 'horizontal (gedrehte Bezeichner)';
$strQueryTime = 'Query took %01.4f sec';//to translate $strQueryTime = 'Die Abfrage dauerte %01.4f sek';
$strDumpComments = 'Include column comments as inline SQL-comments';//to translate $strDumpComments = 'Spaltenkommentare als SQL-Kommentare einbetten';
$strDBComment = 'Database comment: ';//to translate $strDBComment = 'Datenbankkommentar: ';
$strQueryFrame = 'Query window';//to translate $strQueryFrame = 'Abfragefenster';
$strQueryFrameDebug = 'Debugging information';//to translate $strQueryFrameDebug = 'Debugging Information';
$strQueryFrameDebugBox = 'Active variables for the query form:\nDB: %s\nTable: %s\nServer: %s\n\nCurrent variables for the query form:\nDB: %s\nTable: %s\nServer: %s\n\nOpener location: %s\nFrameset location: %s.';//to translate $strQueryFrameDebugBox = 'Aktive Variablen des Abfrageformulars:\nDB: %s\nTabellle: %s\nServer: %s\n\nMomentate Variablen des Abfrageofrmulars:\nDB: %s\nTabelle: %s\nServer: %s\n\nQuelle des <20>ffnenden Fensters: %s\nQuelle des Framesets: %s.';
$strQuerySQLHistory = 'SQL-history';//to translate $strQuerySQLHistory = 'SQL-Verlaufsprotokoll';
$strMIME_MIMEtype = 'MIME-type';//to translate $strMIME_MIMEtype = 'MIME-Typ';
$strMIME_transformation = 'Browser transformation';//to translate $strMIME_transformation = 'Darstellungsumwandlung';
$strMIME_transformation_options = 'Transformation options';//to translate $strMIME_transformation_options = 'Umwandlungsoptionen';
$strMIME_transformation_options_note = 'Please enter the values for transformation options using this format: \'a\',\'b\',\'c\'...<br />If you ever need to put a backslash ("\") or a single quote ("\'") amongst those values, backslashes it (for example \'\\\\xyz\' or \'a\\\'b\').';//to translate $strMIME_transformation_options_note = 'Bitte die Werte für die Umwandlungsoptionen in folgendem Format angeben:: \'a\',\'b\',\'c\'...<br />Wann immer Sie ein Backslash ("\") oder ein einfaches Anführungszeichen ("\'") verwenden,<br \>setzen Sie bitte ein Backslash vor das Zeichen. (z.B.: \'\\\\xyz\' or \'a\\\'b\').';
$strMIME_transformation_note = 'For a list of available transformation options and their MIME-type transformations, click on %stransformation descriptions%s';//to translate $strMIME_transformation_note = 'Eine Liste aller verfügbaren MIME-Typen Umwandlungen und deren Optionen, klicken Sie bitte auf %sUmwandlungen%s';
$strMIME_available_mime = 'Available MIME-types';//to translate $strMIME_available_mime = 'Verfügbare MIME-Typen';
$strMIME_available_transform = 'Available transformations';//to translate $strMIME_available_transform = 'Verfügbare Umwandlungen';
$strMIME_without = 'MIME-types printed in italics do not have a seperate transformation function';//to translate $strMIME_without = 'Kursiv dargestellte MIME-Typen besitzen keine untergliederten Umwandlungen.';
$strMIME_description = 'Description';//to translate $strMIME_description = 'Beschreibung';
$strMIME_nodescription = 'No Description is available for this transformation.<br />Please ask the author, what %s does.';//to translate $strMIME_nodescription = 'Für diese Umwandlung ist keine Beschreibung verfügar.<br />Bitte fragen Sie den Authoren der Funktion namens %s.';
$strMIME_file = 'Filename';//to translate $strMIME_file = 'Dateiname';
$strTransformation_image_jpeg__plain = 'Takes an imagefile and outputs a link for it. First options argument is a possible prepended string like http://...';//to translate $strTransformation_image_jpeg__plain = 'Takes an imagefile and outputs a link for it. First options argument is a possible prepended string like http://...';//to translate
$strTransformation_text_plain__formatted = 'Preserves original formatting of the field. No Escaping is done.';//to translate $strTransformation_text_plain__formatted = 'Preserves original formatting of the field. No Escaping is done.';//to translate
$strTransformation_text_plain__unformatted = 'Displays HTML code as HTML entities. No HTML formatting is shown.';//to translate $strTransformation_text_plain__unformatted = 'Displays HTML code as HTML entities. No HTML formatting is shown.';//to translate

View File

@@ -107,10 +107,15 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')) {
$cfg['Servers'][$i]['table_coords'] = ''; $cfg['Servers'][$i]['table_coords'] = '';
} }
if (!isset($cfg['Servers'][$i]['column_comments'])) { if (!isset($cfg['Servers'][$i]['column_info'])) {
$cfg['Servers'][$i]['column_comments'] = ''; $cfg['Servers'][$i]['column_info'] = '';
} }
if ($cfg['Servers'][$i]['column_info'] == '' && isset($cfg['Servers'][$i]['column_comments']) && $cfg['Servers'][$i]['column_comments'] != '') {
$cfg['Servers'][$i]['column_info'] = $cfg['Servers'][$i]['column_comments'];
}
if (!isset($cfg['Servers'][$i]['pdf_pages'])) { if (!isset($cfg['Servers'][$i]['pdf_pages'])) {
$cfg['Servers'][$i]['pdf_pages'] = ''; $cfg['Servers'][$i]['pdf_pages'] = '';
} }

View File

@@ -123,8 +123,8 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
$cfgRelation['table_info'] = $curr_table[0]; $cfgRelation['table_info'] = $curr_table[0];
} else if ($curr_table[0] == $cfg['Server']['table_coords']) { } else if ($curr_table[0] == $cfg['Server']['table_coords']) {
$cfgRelation['table_coords'] = $curr_table[0]; $cfgRelation['table_coords'] = $curr_table[0];
} else if ($curr_table[0] == $cfg['Server']['column_comments']) { } else if ($curr_table[0] == $cfg['Server']['column_info']) {
$cfgRelation['column_comments'] = $curr_table[0]; $cfgRelation['column_info'] = $curr_table[0];
} else if ($curr_table[0] == $cfg['Server']['pdf_pages']) { } else if ($curr_table[0] == $cfg['Server']['pdf_pages']) {
$cfgRelation['pdf_pages'] = $curr_table[0]; $cfgRelation['pdf_pages'] = $curr_table[0];
} }
@@ -137,7 +137,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
if (isset($cfgRelation['table_coords']) && isset($cfgRelation['pdf_pages'])) { if (isset($cfgRelation['table_coords']) && isset($cfgRelation['pdf_pages'])) {
$cfgRelation['pdfwork'] = TRUE; $cfgRelation['pdfwork'] = TRUE;
} }
if (isset($cfgRelation['column_comments'])) { if (isset($cfgRelation['column_info'])) {
$cfgRelation['commwork'] = TRUE; $cfgRelation['commwork'] = TRUE;
} }
} // end if } // end if
@@ -191,8 +191,8 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
. '</td></tr>' . "\n"; . '</td></tr>' . "\n";
echo ' <tr><td>&nbsp;</td></tr>' . "\n"; echo ' <tr><td>&nbsp;</td></tr>' . "\n";
echo ' <tr><th align="left">$cfg[\'Servers\'][$i][\'column_comments\'] ... </th><td align="right">' echo ' <tr><th align="left">$cfg[\'Servers\'][$i][\'column_info\'] ... </th><td align="right">'
. ((isset($cfgRelation['column_comments'])) ? $hit : sprintf($shit, 'col_com')) . ((isset($cfgRelation['column_info'])) ? $hit : sprintf($shit, 'col_com'))
. '</td></tr>' . "\n"; . '</td></tr>' . "\n";
echo ' <tr><td colspan=2 align="center">' . $GLOBALS['strColComFeat'] . ': ' echo ' <tr><td colspan=2 align="center">' . $GLOBALS['strColComFeat'] . ': '
. (($cfgRelation['commwork'] == TRUE) ? $enabled : $disabled) . (($cfgRelation['commwork'] == TRUE) ? $enabled : $disabled)
@@ -298,12 +298,12 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
global $cfgRelation; global $cfgRelation;
if ($table != '') { if ($table != '') {
$com_qry = 'SELECT column_name, ' . PMA_backquote('comment') . ' FROM ' . PMA_backquote($cfgRelation['column_comments']) $com_qry = 'SELECT column_name, ' . PMA_backquote('comment') . ' FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''; . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'';
$com_rs = PMA_query_as_cu($com_qry); $com_rs = PMA_query_as_cu($com_qry);
} else { } else {
$com_qry = 'SELECT comment FROM ' . PMA_backquote($cfgRelation['column_comments']) $com_qry = 'SELECT comment FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'\'' . ' AND table_name = \'\''
. ' AND column_name = \'(db_comment)\''; . ' AND column_name = \'(db_comment)\'';
@@ -360,7 +360,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
global $cfgRelation; global $cfgRelation;
if ($removekey != '' AND $removekey != $key) { if ($removekey != '' AND $removekey != $key) {
$remove_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['column_comments']) $remove_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND column_name = \'' . PMA_handleSlashes($removekey) . '\''; . ' AND column_name = \'' . PMA_handleSlashes($removekey) . '\'';
@@ -368,7 +368,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
unset($rmv_query); unset($rmv_query);
} }
$test_qry = 'SELECT ' . PMA_backquote('comment') . ', mimetype, transformation, transformation_options FROM ' . PMA_backquote($cfgRelation['column_comments']) $test_qry = 'SELECT ' . PMA_backquote('comment') . ', mimetype, transformation, transformation_options FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND column_name = \'' . PMA_handleSlashes($key) . '\''; . ' AND column_name = \'' . PMA_handleSlashes($key) . '\'';
@@ -378,19 +378,19 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
$row = @PMA_mysql_fetch_array($test_rs); $row = @PMA_mysql_fetch_array($test_rs);
if (strlen($value) > 0 || strlen($row['mimetype']) > 0 || strlen($row['transformation']) > 0 || strlen($row['transformation_options']) > 0) { if (strlen($value) > 0 || strlen($row['mimetype']) > 0 || strlen($row['transformation']) > 0 || strlen($row['transformation_options']) > 0) {
$upd_query = 'UPDATE ' . PMA_backquote($cfgRelation['column_comments']) $upd_query = 'UPDATE ' . PMA_backquote($cfgRelation['column_info'])
. ' SET ' . PMA_backquote('comment') . ' = \'' . PMA_handleSlashes($value) . '\'' . ' SET ' . PMA_backquote('comment') . ' = \'' . PMA_handleSlashes($value) . '\''
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND column_name = \'' . PMA_handleSlashes($key) . '\''; . ' AND column_name = \'' . PMA_handleSlashes($key) . '\'';
} else { } else {
$upd_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['column_comments']) $upd_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND column_name = \'' . PMA_handleSlashes($key) . '\''; . ' AND column_name = \'' . PMA_handleSlashes($key) . '\'';
} }
} else if (strlen($value) > 0) { } else if (strlen($value) > 0) {
$upd_query = 'INSERT INTO ' . PMA_backquote($cfgRelation['column_comments']) $upd_query = 'INSERT INTO ' . PMA_backquote($cfgRelation['column_info'])
. ' (db_name, table_name, column_name, ' . PMA_backquote('comment') . ') ' . ' (db_name, table_name, column_name, ' . PMA_backquote('comment') . ') '
. ' VALUES(' . ' VALUES('
. '\'' . PMA_sqlAddslashes($db) . '\',' . '\'' . PMA_sqlAddslashes($db) . '\','

View File

@@ -95,7 +95,7 @@ if (!defined('PMA_TRANSFORMATION_LIB_INCLUDED')){
function PMA_getMIME($db, $table, $strict = false) { function PMA_getMIME($db, $table, $strict = false) {
global $cfgRelation; global $cfgRelation;
$com_qry = 'SELECT column_name, mimetype, transformation, transformation_options FROM ' . PMA_backquote($cfgRelation['column_comments']) $com_qry = 'SELECT column_name, mimetype, transformation, transformation_options FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND (mimetype != \'\'' . (!$strict ? ' OR transformation != \'\' OR transformation_options != \'\'' : '') . ')'; . ' AND (mimetype != \'\'' . (!$strict ? ' OR transformation != \'\' OR transformation_options != \'\'' : '') . ')';
@@ -135,7 +135,7 @@ if (!defined('PMA_TRANSFORMATION_LIB_INCLUDED')){
function PMA_setMIME($db, $table, $key, $mimetype, $transformation, $transformation_options, $forcedelete = false) { function PMA_setMIME($db, $table, $key, $mimetype, $transformation, $transformation_options, $forcedelete = false) {
global $cfgRelation; global $cfgRelation;
$test_qry = 'SELECT mimetype, ' . PMA_backquote('comment') . ' FROM ' . PMA_backquote($cfgRelation['column_comments']) $test_qry = 'SELECT mimetype, ' . PMA_backquote('comment') . ' FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND column_name = \'' . PMA_handleSlashes($key) . '\''; . ' AND column_name = \'' . PMA_handleSlashes($key) . '\'';
@@ -145,7 +145,7 @@ if (!defined('PMA_TRANSFORMATION_LIB_INCLUDED')){
$row = @PMA_mysql_fetch_array($test_rs); $row = @PMA_mysql_fetch_array($test_rs);
if (!$forcedelete && (strlen($mimetype) > 0 || strlen($transformation) > 0 || strlen($transformation_options) > 0 || strlen($row['comment']) > 0)) { if (!$forcedelete && (strlen($mimetype) > 0 || strlen($transformation) > 0 || strlen($transformation_options) > 0 || strlen($row['comment']) > 0)) {
$upd_query = 'UPDATE ' . PMA_backquote($cfgRelation['column_comments']) $upd_query = 'UPDATE ' . PMA_backquote($cfgRelation['column_info'])
. ' SET mimetype = \'' . PMA_handleSlashes($mimetype) . '\',' . ' SET mimetype = \'' . PMA_handleSlashes($mimetype) . '\','
. ' transformation = \'' . PMA_handleSlashes($transformation) . '\',' . ' transformation = \'' . PMA_handleSlashes($transformation) . '\','
. ' transformation_options = \'' . PMA_handleSlashes($transformation_options) . '\'' . ' transformation_options = \'' . PMA_handleSlashes($transformation_options) . '\''
@@ -153,13 +153,13 @@ if (!defined('PMA_TRANSFORMATION_LIB_INCLUDED')){
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND column_name = \'' . PMA_handleSlashes($key) . '\''; . ' AND column_name = \'' . PMA_handleSlashes($key) . '\'';
} else { } else {
$upd_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['column_comments']) $upd_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['column_info'])
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
. ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\'' . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
. ' AND column_name = \'' . PMA_handleSlashes($key) . '\''; . ' AND column_name = \'' . PMA_handleSlashes($key) . '\'';
} }
} else if (strlen($mimetype) > 0 || strlen($transformation) > 0 || strlen($transformation_options) > 0) { } else if (strlen($mimetype) > 0 || strlen($transformation) > 0 || strlen($transformation_options) > 0) {
$upd_query = 'INSERT INTO ' . PMA_backquote($cfgRelation['column_comments']) $upd_query = 'INSERT INTO ' . PMA_backquote($cfgRelation['column_info'])
. ' (db_name, table_name, column_name, mimetype, transformation, transformation_options) ' . ' (db_name, table_name, column_name, mimetype, transformation, transformation_options) '
. ' VALUES(' . ' VALUES('
. '\'' . PMA_sqlAddslashes($db) . '\',' . '\'' . PMA_sqlAddslashes($db) . '\','