Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-07-29 05:59:25 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-07-29 05:59:25 +0300
commitc21377d2da7f535614698deae17ae26b66f7a445 (patch)
tree2fd48d8838d05ba307c3341c577276e034154192 /tbl_replace.php
parent9a8e8e60c83e684fc4dd20ab0f64f19ac033451c (diff)
Fix #10307 Replication broken when using cross-database master/slave config and phpmyadmin
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'tbl_replace.php')
-rw-r--r--tbl_replace.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tbl_replace.php b/tbl_replace.php
index f701a75f93..68f3f4bd80 100644
--- a/tbl_replace.php
+++ b/tbl_replace.php
@@ -283,8 +283,7 @@ foreach ($loop_array as $rownumber => $where_clause) {
$value_sets[] = implode(', ', $query_values);
} else {
// build update query
- $query[] = 'UPDATE ' . PMA_Util::backquote($GLOBALS['db'])
- . '.' . PMA_Util::backquote($GLOBALS['table'])
+ $query[] = 'UPDATE ' . PMA_Util::backquote($GLOBALS['table'])
. ' SET ' . implode(', ', $query_values)
. ' WHERE ' . $where_clause
. ($_REQUEST['clause_is_unique'] ? '' : ' LIMIT 1');