use high-level function to avoid an undefined value

This commit is contained in:
Marc Delisle
2009-10-03 13:48:42 +00:00
parent f7d92b19ac
commit 7a3da21570

View File

@@ -646,9 +646,7 @@ function PMA_createTargetTables($src_db, $trg_db, $src_link, $trg_link, &$uncomm
}
$uncommon_tables_fields[$table_index] = $fields;
$Show_create_query = "SHOW CREATE TABLE ".PMA_backquote($src_db). '.' .PMA_backquote($uncommon_tables[$table_index]);
$Show_create_result = PMA_DBI_fetch_result($Show_create_query, null, null, $src_link);
$Create_Query = $Show_create_result[0]['Create Table'];
$Create_Query = PMA_DBI_fetch_value("SHOW CREATE TABLE " . PMA_backquote($src_db) . '.' . PMA_backquote($uncommon_tables[$table_index]), 0, 1, $src_link);
// Replace the src table name with a `dbname`.`tablename`
$Create_Table_Query = preg_replace('/' . PMA_backquote($uncommon_tables[$table_index]) . '/',