bug #2852370 [operations] Renaming database deletes triggers

This commit is contained in:
Marc Delisle
2009-09-27 13:23:07 +00:00
parent d3dd6eda32
commit 2227f1c4c3
3 changed files with 18 additions and 2 deletions

View File

@@ -1389,10 +1389,11 @@ function PMA_DBI_get_definition($db, $which, $name, $link = null)
* @uses PMA_DBI_fetch_result()
* @param string $db db name
* @param string $table table name
* @param string $delimiter the delimiter to use (may be empty)
*
* @return array information about triggers (may be empty)
*/
function PMA_DBI_get_triggers($db, $table)
function PMA_DBI_get_triggers($db, $table, $delimiter = '//')
{
$result = array();
@@ -1406,7 +1407,6 @@ function PMA_DBI_get_triggers($db, $table)
}
if ($triggers) {
$delimiter = '//';
foreach ($triggers as $trigger) {
if ($GLOBALS['cfg']['Server']['DisableIS']) {
$trigger['TRIGGER_NAME'] = $trigger['Trigger'];