Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Dec 12, 2012
1 parent 018974d commit 72eaf6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ VerboseMultiSubmit, ReplaceHelpImg
- bug #3588354 [l10n] Portuguese Language not displaying correctly
- bug #3591412 [status] Live charts don't work for non-default server
- bug [core] Proxy ajax calls to pma.net to avoid browser notices
- bug #3593534 [tracking] Structure Snapshot on tracked view renders invalid
SQL

3.5.4.0 (2012-11-16)
- bug #3570212 [edit] uuid_short() is a no-arguments function
Expand Down
11 changes: 8 additions & 3 deletions tbl_tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ function PMA_filter_tracking(
$tracking_set = rtrim($tracking_set, ',');

$versionCreated = PMA_Tracker::createVersion(
$GLOBALS['db'], $GLOBALS['table'], $_REQUEST['version'], $tracking_set
$GLOBALS['db'],
$GLOBALS['table'],
$_REQUEST['version'],
$tracking_set,
PMA_Table::isView($GLOBALS['db'], $GLOBALS['table'])
);
if ($versionCreated) {
$msg = PMA_Message::success(
Expand Down Expand Up @@ -292,10 +296,11 @@ function PMA_filter_tracking(
$_REQUEST['db'], $_REQUEST['table'], $_REQUEST['version']
);

// Get first DROP TABLE and CREATE TABLE statements
// Get first DROP TABLE/VIEW and CREATE TABLE/VIEW statements
$drop_create_statements = $data['ddlog'][0]['statement'];

if (strstr($data['ddlog'][0]['statement'], 'DROP TABLE')) {
if (strstr($data['ddlog'][0]['statement'], 'DROP TABLE')
|| strstr($data['ddlog'][0]['statement'], 'DROP VIEW')) {
$drop_create_statements .= $data['ddlog'][1]['statement'];
}
// Print SQL code
Expand Down

0 comments on commit 72eaf6d

Please sign in to comment.