From 33b1a5f354e8068fdcc828ca5023abd43f231bff Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:05:38 +0200 Subject: [PATCH 01/19] Translation update done using Pootle. --- po/pt_BR.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 3b28f6ea1d..12692a76c3 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,8 +4,8 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-15 13:55+0200\n" -"Last-Translator: Jose Ivan Bezerra Vilarouca Filho \n" +"PO-Revision-Date: 2011-06-30 23:05+0200\n" +"Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" @@ -412,7 +412,7 @@ msgstr[1] "%s tabelas" #: db_qbe.php:41 msgid "You have to choose at least one column to display" -msgstr "Deve escolher pelo menos uma coluna para exibir" +msgstr "Você deve escolher pelo menos uma coluna para exibir" #: db_qbe.php:186 msgid "Switch to" From d0ddec83e479f5f88fabaf8f79fd5518e8c3da1f Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:09:41 +0200 Subject: [PATCH 02/19] Translation update done using Pootle. --- po/pt_BR.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 12692a76c3..340dab3d14 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:05+0200\n" +"PO-Revision-Date: 2011-06-30 23:09+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -10688,7 +10688,7 @@ msgstr "Criar versão %s de %s.%s" #: tbl_tracking.php:724 msgid "Track these data definition statements:" -msgstr "" +msgstr "Rastrear estas declarações de definição de dados:" #: tbl_tracking.php:732 msgid "Track these data manipulation statements:" From 204007d24825d12d6f90cce16815daa2b7284d36 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:09:57 +0200 Subject: [PATCH 03/19] Translation update done using Pootle. --- po/pt_BR.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 340dab3d14..96d51586c7 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -10688,7 +10688,7 @@ msgstr "Criar versão %s de %s.%s" #: tbl_tracking.php:724 msgid "Track these data definition statements:" -msgstr "Rastrear estas declarações de definição de dados:" +msgstr "Rastrear estas instruções de definição de dados:" #: tbl_tracking.php:732 msgid "Track these data manipulation statements:" From 77d6daf4f8bd12f6a51c33cd32172deee248667c Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:10:16 +0200 Subject: [PATCH 04/19] Translation update done using Pootle. --- po/pt_BR.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 96d51586c7..c94ff8c307 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:09+0200\n" +"PO-Revision-Date: 2011-06-30 23:10+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -10692,7 +10692,7 @@ msgstr "Rastrear estas instruções de definição de dados:" #: tbl_tracking.php:732 msgid "Track these data manipulation statements:" -msgstr "" +msgstr "Rastrear estas instruções de manipulação de dados:" #: tbl_tracking.php:740 msgid "Create version" From edcfcfb4bcda7e5889aaba0e90336830ada2ccb3 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:10:19 +0200 Subject: [PATCH 05/19] Translation update done using Pootle. --- po/pt_BR.po | 1 + 1 file changed, 1 insertion(+) diff --git a/po/pt_BR.po b/po/pt_BR.po index c94ff8c307..d61f84de6d 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -10691,6 +10691,7 @@ msgid "Track these data definition statements:" msgstr "Rastrear estas instruções de definição de dados:" #: tbl_tracking.php:732 +#, fuzzy msgid "Track these data manipulation statements:" msgstr "Rastrear estas instruções de manipulação de dados:" From 0d5c862daeae6e2d72f4ca9cbdb92d68c44a2426 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:10:42 +0200 Subject: [PATCH 06/19] Translation update done using Pootle. --- po/pt_BR.po | 1 + 1 file changed, 1 insertion(+) diff --git a/po/pt_BR.po b/po/pt_BR.po index d61f84de6d..da46483bc3 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -10687,6 +10687,7 @@ msgid "Create version %s of %s.%s" msgstr "Criar versão %s de %s.%s" #: tbl_tracking.php:724 +#, fuzzy msgid "Track these data definition statements:" msgstr "Rastrear estas instruções de definição de dados:" From 085e3ae448afd505779e248a273272fb7859d530 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:12:51 +0200 Subject: [PATCH 07/19] Translation update done using Pootle. --- po/pt_BR.po | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index da46483bc3..baca17eb4a 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:10+0200\n" +"PO-Revision-Date: 2011-06-30 23:12+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -7255,9 +7255,8 @@ msgid "PARTITION definition" msgstr "Definição da PARTIÇÃO" #: libraries/tbl_properties.inc.php:776 -#, fuzzy msgid "+ Add a value" -msgstr "Adicionar novo usuário" +msgstr "+ Adicionar um valor" #: libraries/transformations/application_octetstream__download.inc.php:9 #, fuzzy From 8a1080e6339c6cc7a587861c32375d43e0aaf152 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:17:29 +0200 Subject: [PATCH 08/19] Translation update done using Pootle. --- po/pt_BR.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index baca17eb4a..46f501bec6 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:12+0200\n" +"PO-Revision-Date: 2011-06-30 23:17+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -7212,7 +7212,7 @@ msgstr "Nenhum" #: libraries/tbl_properties.inc.php:378 msgid "As defined:" -msgstr "" +msgstr "Como definido:" #: libraries/tbl_properties.inc.php:497 tbl_structure.php:155 #: tbl_structure.php:160 tbl_structure.php:605 From 2fa65ecb9f16540b466fec8bd8bbec6638ea16ad Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:19:36 +0200 Subject: [PATCH 09/19] Translation update done using Pootle. --- po/pt_BR.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 46f501bec6..31804a83df 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:17+0200\n" +"PO-Revision-Date: 2011-06-30 23:19+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -514,10 +514,10 @@ msgstr[0] "" msgstr[1] "" #: db_routines.php:167 -#, fuzzy, php-format +#, php-format #| msgid "Allows executing stored routines." msgid "Execution results of routine %s" -msgstr "Permitir executar stored routines." +msgstr "Resultados de execução da rotina %s" #: db_routines.php:187 libraries/import.lib.php:153 sql.php:678 #: tbl_change.php:180 tbl_get_field.php:34 From 0a7a170413058960ae97429aab458b5b0cf22e24 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:19:53 +0200 Subject: [PATCH 10/19] Translation update done using Pootle. --- po/pt_BR.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 31804a83df..b5355b166f 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -517,7 +517,7 @@ msgstr[1] "" #, php-format #| msgid "Allows executing stored routines." msgid "Execution results of routine %s" -msgstr "Resultados de execução da rotina %s" +msgstr "Resultados da execução da rotina %s" #: db_routines.php:187 libraries/import.lib.php:153 sql.php:678 #: tbl_change.php:180 tbl_get_field.php:34 From 246367f86e6dfc929ce36e86af87562b09b10eb7 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:22:08 +0200 Subject: [PATCH 11/19] Translation update done using Pootle. --- po/pt_BR.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index b5355b166f..540d582d9c 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:19+0200\n" +"PO-Revision-Date: 2011-06-30 23:22+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -10663,7 +10663,7 @@ msgid "Version" msgstr "Versão" #: tbl_tracking.php:692 -#, fuzzy, php-format +#, php-format msgid "Deactivate tracking for %s.%s" msgstr "Desativar rastreamento para %s.%s" From 71e32b614618c46c3094f17bcc566959ba3d3db8 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:24:34 +0200 Subject: [PATCH 12/19] Translation update done using Pootle. --- po/pt_BR.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 540d582d9c..8942a444e7 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:22+0200\n" +"PO-Revision-Date: 2011-06-30 23:24+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -10618,7 +10618,7 @@ msgstr "Excluir dados de monitoramento desta tabela" #, fuzzy #| msgid "No databases" msgid "No data" -msgstr "Sem bases" +msgstr "Não existem dados" #: tbl_tracking.php:453 tbl_tracking.php:510 msgid "Date" From e35bd7e265f6e3645aabebb5ca3e35aadd7c0466 Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:37:17 +0200 Subject: [PATCH 13/19] Translation update done using Pootle. --- po/pt_BR.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 8942a444e7..05d842a9c6 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:24+0200\n" +"PO-Revision-Date: 2011-06-30 23:37+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -10448,7 +10448,7 @@ msgstr "" #: tbl_structure.php:165 tbl_structure.php:169 msgid "Browse distinct values" -msgstr "Navegador distingue valores" +msgstr "Procurar valores distintos" #: tbl_structure.php:170 tbl_structure.php:171 msgid "Add primary key" From 2279fd9c98ee43acba942d08c0dd3ca987748a1c Mon Sep 17 00:00:00 2001 From: wiltave Date: Thu, 30 Jun 2011 23:48:41 +0200 Subject: [PATCH 14/19] Translation update done using Pootle. --- po/pt_BR.po | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/po/pt_BR.po b/po/pt_BR.po index 05d842a9c6..cf21f9afe8 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: phpMyAdmin 3.5.0-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2011-06-27 10:29+0200\n" -"PO-Revision-Date: 2011-06-30 23:37+0200\n" +"PO-Revision-Date: 2011-06-30 23:48+0200\n" "Last-Translator: \n" "Language-Team: brazilian_portuguese \n" "Language: pt_BR\n" @@ -10513,10 +10513,9 @@ msgid "Propose table structure" msgstr "Propor estrutura da tabela" #: tbl_structure.php:676 -#, fuzzy #| msgid "Add %s field(s)" msgid "Add column" -msgstr "Adicionar %s campo(s)" +msgstr "Adicionar coluna" #: tbl_structure.php:690 msgid "At End of Table" From 4d1540cc1c8136040968bcfb3a4629aad2551b3a Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 1 Jul 2011 22:58:35 +0530 Subject: [PATCH 15/19] bug #3348995 [config] $cfg['Export']['asfile'] set to false does not select asText option --- ChangeLog | 1 + js/export.js | 25 +++++++++++++++---------- libraries/display_export.lib.php | 2 +- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 71db2134a4..4e47917d76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog 3.4.4.0 (not yet released) - bug #3323060 [parser] SQL parser breaks AJAX requests if query has unclosed quotes - bug #3323101 [parser] Invalid escape sequence in SQL parser +- bug #3348995 [config] $cfg['Export']['asfile'] set to false does not select asText option 3.4.3.0 (2011-06-27) - bug #3311170 [sync] Missing helper icons in Synchronize diff --git a/js/export.js b/js/export.js index 1cf9de50b7..3fd3c00e9d 100644 --- a/js/export.js +++ b/js/export.js @@ -89,18 +89,23 @@ $(document).ready(function() { /** * Toggles the disabling of the "save to file" options */ +function toggle_save_to_file() { + if($("#radio_dump_asfile:checked").length == 0) { + $("#ul_save_asfile > li").fadeTo('fast', 0.4); + $("#ul_save_asfile > li > input").attr('disabled', 'disabled'); + $("#ul_save_asfile > li> select").attr('disabled', 'disabled'); + } else { + $("#ul_save_asfile > li").fadeTo('fast', 1); + $("#ul_save_asfile > li > input").removeAttr('disabled'); + $("#ul_save_asfile > li> select").removeAttr('disabled'); + } +} + $(document).ready(function() { + toggle_save_to_file(); $("input[type='radio'][name='output_format']").change(function() { - if($("#radio_dump_asfile:checked").length == 0) { - $("#ul_save_asfile > li").fadeTo('fast', 0.4); - $("#ul_save_asfile > li > input").attr('disabled', 'disabled'); - $("#ul_save_asfile > li> select").attr('disabled', 'disabled'); - } else { - $("#ul_save_asfile > li").fadeTo('fast', 1); - $("#ul_save_asfile > li > input").removeAttr('disabled'); - $("#ul_save_asfile > li> select").removeAttr('disabled'); - } - }); + toggle_save_to_file(); + }); }); /** diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index 87c3a8e9f4..3bc9c7f98f 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -325,7 +325,7 @@ if(isset($_GET['sql_query'])) { -
  • />
  • +
  • />
  • From f53f5d76473c7d88ebd8b8a361ffb7a5d1643cb4 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Fri, 1 Jul 2011 18:33:23 +0200 Subject: [PATCH 16/19] Changed background color for invalid inputs --- themes/pmahomme/css/theme_right.css.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index ba5a926c38..272c17be9f 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -1729,7 +1729,7 @@ table#serverconnection_trg_local { */ input[type=text].invalid_value, .invalid_value { - background:#F00; + background:#FFCCCC; } /** From 56d4b081a0020d03b988d322a39ac4a05d803384 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Fri, 1 Jul 2011 20:01:37 +0200 Subject: [PATCH 17/19] Remove STDDEV_* and VAR_* Standard deviation and variance make no sense when called with one argument --- libraries/config.default.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libraries/config.default.php b/libraries/config.default.php index 1a478b7874..34db071c2c 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -2864,8 +2864,6 @@ if ($cfg['ShowFunctionFields']) { 'SOUNDEX', 'SPACE', 'SQRT', - 'STDDEV_POP', - 'STDDEV_SAMP', 'TAN', 'TIMESTAMP', 'TIME_TO_SEC', @@ -2878,8 +2876,6 @@ if ($cfg['ShowFunctionFields']) { 'UTC_TIME', 'UTC_TIMESTAMP', 'UUID', - 'VAR_POP', - 'VAR_SAMP', 'YEAR', ); @@ -3009,13 +3005,9 @@ if ($cfg['ShowFunctionFields']) { 'RAND', 'ROUND', 'SQRT', - 'STDDEV_POP', - 'STDDEV_SAMP', 'TAN', 'TIME_TO_SEC', 'UNIX_TIMESTAMP', - 'VAR_POP', - 'VAR_SAMP', ), 'FUNC_SPATIAL' => array( From a28d43abf3948f44d036a009462d48cedf597b5b Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Fri, 1 Jul 2011 20:31:21 +0200 Subject: [PATCH 18/19] Updated MySQL function list --- libraries/config.default.php | 59 ++++++++++++++++++++++++++++++++++++ tbl_replace.php | 30 +++++++++++------- 2 files changed, 78 insertions(+), 11 deletions(-) diff --git a/libraries/config.default.php b/libraries/config.default.php index 34db071c2c..0e0b9c8ad4 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -2824,14 +2824,19 @@ if ($cfg['ShowFunctionFields']) { 'CHAR', 'CHAR_LENGTH', 'COMPRESS', + 'CONNECTION_ID', 'COS', 'COT', 'CRC32', 'CURDATE', 'CURRENT_USER', 'CURTIME', + 'DATABASE', 'DATE', 'DAYNAME', + 'DAYOFMONTH', + 'DAYOFWEEK', + 'DAYOFYEAR', 'DEGREES', 'DES_DECRYPT', 'DES_ENCRYPT', @@ -2841,33 +2846,53 @@ if ($cfg['ShowFunctionFields']) { 'FROM_DAYS', 'FROM_UNIXTIME', 'HEX', + 'HOUR', 'INET_ATON', 'INET_NTOA', + 'LAST_DAY', 'LENGTH', 'LN', + 'LOAD_FILE', 'LOG', 'LOG10', 'LOG2', 'LOWER', + 'LTRIM', 'MD5', + 'MICROSECOND', + 'MINUTE', + 'MONTH', + 'MONTHNAME', 'NOW', 'OCT', 'OLD_PASSWORD', 'ORD', 'PASSWORD', + 'PI', + 'QUARTER', + 'QUOTE', 'RADIANS', 'RAND', 'REVERSE', 'ROUND', + 'RTRIM', + 'SECOND', 'SEC_TO_TIME', 'SHA1', + 'SIGN', + 'SIN', 'SOUNDEX', 'SPACE', 'SQRT', + 'SYSDATE', 'TAN', + 'TIME', 'TIMESTAMP', 'TIME_TO_SEC', + 'TO_DAYS', + 'TRIM', 'UNCOMPRESS', + 'UNCOMPRESSED_LENGTH', 'UNHEX', 'UNIX_TIMESTAMP', 'UPPER', @@ -2876,7 +2901,12 @@ if ($cfg['ShowFunctionFields']) { 'UTC_TIME', 'UTC_TIMESTAMP', 'UUID', + 'VERSION', + 'WEEK', + 'WEEKDAY', + 'WEEKOFYEAR', 'YEAR', + 'YEARWEEK', ); /** @@ -2941,20 +2971,27 @@ if ($cfg['ShowFunctionFields']) { 'CHAR', 'CURRENT_USER', 'COMPRESS', + 'DATABASE', 'DAYNAME', 'DES_DECRYPT', 'DES_ENCRYPT', 'ENCRYPT', 'HEX', 'INET_NTOA', + 'LOAD_FILE', 'LOWER', + 'LTRIM', 'MD5', + 'MONTHNAME', 'OLD_PASSWORD', 'PASSWORD', + 'QUOTE', 'REVERSE', + 'RTRIM', 'SHA1', 'SOUNDEX', 'SPACE', + 'TRIM', 'UNCOMPRESS', 'UNHEX', 'UPPER', @@ -2968,8 +3005,11 @@ if ($cfg['ShowFunctionFields']) { 'DATE', 'FROM_DAYS', 'FROM_UNIXTIME', + 'LAST_DAY', 'NOW', 'SEC_TO_TIME', + 'SYSDATE', + 'TIME', 'TIMESTAMP', 'UTC_DATE', 'UTC_TIME', @@ -2987,27 +3027,46 @@ if ($cfg['ShowFunctionFields']) { 'BIT_COUNT', 'CEILING', 'CHAR_LENGTH', + 'CONNECTION_ID', 'COS', 'COT', 'CRC32', + 'DAYOFMONTH', + 'DAYOFWEEK', + 'DAYOFYEAR', 'DEGREES', 'EXP', 'FLOOR', + 'HOUR', 'INET_ATON', 'LENGTH', 'LN', 'LOG', 'LOG2', 'LOG10', + 'MICROSECOND', + 'MINUTE', + 'MONTH', 'OCT', 'ORD', + 'PI', + 'QUARTER', 'RADIANS', 'RAND', 'ROUND', + 'SECOND', + 'SIGN', + 'SIN', 'SQRT', 'TAN', + 'TO_DAYS', 'TIME_TO_SEC', + 'UNCOMPRESSED_LENGTH', 'UNIX_TIMESTAMP', + 'WEEK', + 'WEEKDAY', + 'WEEKOFYEAR', + 'YEARWEEK', ), 'FUNC_SPATIAL' => array( diff --git a/tbl_replace.php b/tbl_replace.php index b0c71e6427..ab20d29453 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -130,18 +130,27 @@ if (isset($_REQUEST['where_clause'])) { $query = array(); $value_sets = array(); $func_no_param = array( - 'NOW', + 'CONNECTION_ID', + 'CURRENT_USER', 'CURDATE', 'CURTIME', + 'DATABASE', + 'LAST_INSERT_ID', + 'NOW', + 'PI', + 'RAND', + 'SYSDATE', + 'UNIX_TIMESTAMP', + 'USER', 'UTC_DATE', 'UTC_TIME', 'UTC_TIMESTAMP', - 'UNIX_TIMESTAMP', - 'RAND', - 'USER', - 'LAST_INSERT_ID', 'UUID', - 'CURRENT_USER', + 'VERSION', +); +$func_optional_param = array( + 'RAND', + 'UNIX_TIMESTAMP', ); foreach ($loop_array as $rownumber => $where_clause) { @@ -225,16 +234,15 @@ foreach ($loop_array as $rownumber => $where_clause) { if (empty($me_funcs[$key])) { $cur_value = $val; - } elseif ('UNIX_TIMESTAMP' === $me_funcs[$key] && $val != "''") { - $cur_value = $me_funcs[$key] . '(' . $val . ')'; } elseif ('UUID' === $me_funcs[$key]) { /* This way user will know what UUID new row has */ $uuid = PMA_DBI_fetch_value('SELECT UUID()'); $cur_value = "'" . $uuid . "'"; - } elseif (in_array($me_funcs[$key], $func_no_param)) { - $cur_value = $me_funcs[$key] . '()'; - } else { + } elseif (!in_array($me_funcs[$key], $func_no_param) + || ($val != "''" && in_array($me_funcs[$key], $func_optional_param))) { $cur_value = $me_funcs[$key] . '(' . $val . ')'; + } else { + $cur_value = $me_funcs[$key] . '()'; } // i n s e r t From d5dd8a2d37f0fab931df449d4c6a744821a78afb Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Fri, 1 Jul 2011 20:35:38 +0200 Subject: [PATCH 19/19] Fix PMA_DBI_get_columns --- libraries/database_interface.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index 50ae58b736..bcafbb190c 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -836,7 +836,7 @@ function PMA_DBI_get_columns($database, $table, $full = false, $link = null) $fields = PMA_DBI_fetch_result( 'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS FROM ' . PMA_backquote($database) . '.' . PMA_backquote($table), - 'Field', ($full ? null : 'Field'), $link); + 'Field', null, $link); if (! is_array($fields) || count($fields) < 1) { return false; }