From ca83c56f5d27acc8fb6306a709911eb7ce6ecec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 21 Jan 2010 11:01:13 +0000 Subject: [PATCH] rfe #2823707 [edit] Call UUID function separately to show it in insert. --- ChangeLog | 1 + tbl_replace.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8179107df..753bb0f89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA + rfe #2816943 [interface] Add REGEXP ^...$ to select dialog. + rfe #2924956 [interface] Add insert ignore option to editing row. + rfe #2838080 [interface] Show warning when javascript is disabled. ++ rfe #2823707 [edit] Call UUID function separately to show it in insert. 3.3.0.0 (not yet released) + rfe #2308632 [edit] Use hex for (var)binary fields, diff --git a/tbl_replace.php b/tbl_replace.php index 3f9fcad57..34e551ab9 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -255,6 +255,10 @@ foreach ($loop_array as $rowcount => $where_clause) { $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 {