From 3acb8fc332f2679c3e9f381b0c6317b1f91b8000 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 6 May 2002 17:42:50 +0000 Subject: [PATCH] explicit fields for relationtable --- tbl_relation.php3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tbl_relation.php3 b/tbl_relation.php3 index 6f2b755bd..754f8e36b 100644 --- a/tbl_relation.php3 +++ b/tbl_relation.php3 @@ -29,7 +29,9 @@ if (!empty($cfg['Server']['relation']) if ($value != 'nix') { if (!isset($existrel[$key])) { $for = explode('.', $destination[$key]); - $upd_query = 'INSERT INTO ' . $cfg['Server']['relation'] . ' values(' + $upd_query = 'INSERT INTO ' . $cfg['Server']['relation'] + . '(master_table, master_field, foreign_table, foreign_field)' + . ' values(' . '\'' . PMA_sqlAddslashes($table) . '\', ' . '\'' . PMA_sqlAddslashes($key) . '\', ' . '\'' . PMA_sqlAddslashes($for[0]) . '\', '