bug #2832600 [export] Slow export when having lots of databases
This commit is contained in:
@@ -46,6 +46,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
OpenOffice Spreadsheet, thanks to Thomas Pulickal - jemajoign
|
OpenOffice Spreadsheet, thanks to Thomas Pulickal - jemajoign
|
||||||
- patch #2859788 [parser] Double-character delimiters (bug #2846239),
|
- patch #2859788 [parser] Double-character delimiters (bug #2846239),
|
||||||
thanks to Thomas Pulickal - jemajoign
|
thanks to Thomas Pulickal - jemajoign
|
||||||
|
- bug #2832600 [export] Slow export when having lots of databases
|
||||||
|
|
||||||
3.2.2.0 (2009-09-13)
|
3.2.2.0 (2009-09-13)
|
||||||
- bug #2825293 [structure] Default value for a BIT column
|
- bug #2825293 [structure] Default value for a BIT column
|
||||||
|
@@ -1396,14 +1396,25 @@ function PMA_DBI_get_triggers($db, $table)
|
|||||||
{
|
{
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
|
if (! $GLOBALS['cfg']['Server']['DisableIS']) {
|
||||||
// Note: in http://dev.mysql.com/doc/refman/5.0/en/faqs-triggers.html
|
// Note: in http://dev.mysql.com/doc/refman/5.0/en/faqs-triggers.html
|
||||||
// their example uses WHERE TRIGGER_SCHEMA='dbname' so let's use this
|
// their example uses WHERE TRIGGER_SCHEMA='dbname' so let's use this
|
||||||
// instead of WHERE EVENT_OBJECT_SCHEMA='dbname'
|
// instead of WHERE EVENT_OBJECT_SCHEMA='dbname'
|
||||||
$triggers = PMA_DBI_fetch_result("SELECT TRIGGER_SCHEMA, TRIGGER_NAME, EVENT_MANIPULATION, ACTION_TIMING, ACTION_STATEMENT, EVENT_OBJECT_SCHEMA, EVENT_OBJECT_TABLE FROM information_schema.TRIGGERS WHERE TRIGGER_SCHEMA= '" . PMA_sqlAddslashes($db,true) . "' and EVENT_OBJECT_TABLE = '" . PMA_sqlAddslashes($table, true) . "';");
|
$triggers = PMA_DBI_fetch_result("SELECT TRIGGER_SCHEMA, TRIGGER_NAME, EVENT_MANIPULATION, ACTION_TIMING, ACTION_STATEMENT, EVENT_OBJECT_SCHEMA, EVENT_OBJECT_TABLE FROM information_schema.TRIGGERS WHERE TRIGGER_SCHEMA= '" . PMA_sqlAddslashes($db,true) . "' and EVENT_OBJECT_TABLE = '" . PMA_sqlAddslashes($table, true) . "';");
|
||||||
|
} else {
|
||||||
|
$triggers = PMA_DBI_fetch_result("SHOW TRIGGERS FROM " . PMA_sqlAddslashes($db,true) . " LIKE '" . PMA_sqlAddslashes($table, true) . "';");
|
||||||
|
}
|
||||||
|
|
||||||
if ($triggers) {
|
if ($triggers) {
|
||||||
$delimiter = '//';
|
$delimiter = '//';
|
||||||
foreach ($triggers as $trigger) {
|
foreach ($triggers as $trigger) {
|
||||||
|
if ($GLOBALS['cfg']['Server']['DisableIS']) {
|
||||||
|
$trigger['TRIGGER_NAME'] = $trigger['Trigger'];
|
||||||
|
$trigger['ACTION_TIMING'] = $trigger['Timing'];
|
||||||
|
$trigger['EVENT_MANIPULATION'] = $trigger['Event'];
|
||||||
|
$trigger['EVENT_OBJECT_TABLE'] = $trigger['Table'];
|
||||||
|
$trigger['ACTION_STATEMENT'] = $trigger['Statement'];
|
||||||
|
}
|
||||||
$one_result = array();
|
$one_result = array();
|
||||||
$one_result['name'] = $trigger['TRIGGER_NAME'];
|
$one_result['name'] = $trigger['TRIGGER_NAME'];
|
||||||
$one_result['action_timing'] = $trigger['ACTION_TIMING'];
|
$one_result['action_timing'] = $trigger['ACTION_TIMING'];
|
||||||
|
Reference in New Issue
Block a user