deleting internal relation no longer worked

This commit is contained in:
Marc Delisle
2008-05-11 13:11:10 +00:00
parent 07bea9b00d
commit dc6c010ddd

View File

@@ -35,7 +35,9 @@ if (PMA_foreignkey_supported($type_T1) && PMA_foreignkey_supported($type_T2) &&
} }
} else { } else {
// internal relations // internal relations
PMA_query_as_cu('DELETE FROM '.$cfg['Server']['relation'].' WHERE ' PMA_query_as_cu('DELETE FROM '
. PMA_backquote($GLOBALS['cfgRelation']['db']) . '.'
. $cfg['Server']['relation'].' WHERE '
. 'master_db = \'' . PMA_sqlAddslashes($DB2) . '\'' . 'master_db = \'' . PMA_sqlAddslashes($DB2) . '\''
. ' AND master_table = \'' . PMA_sqlAddslashes($T2) . '\'' . ' AND master_table = \'' . PMA_sqlAddslashes($T2) . '\''
. ' AND master_field = \'' . PMA_sqlAddslashes($F2) . '\'' . ' AND master_field = \'' . PMA_sqlAddslashes($F2) . '\''