Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#13893 issue fix Simulating queries produce unexpected results #14231

Merged
merged 1 commit into from May 16, 2018

Conversation

aswaniprakash
Copy link
Contributor

@aswaniprakash aswaniprakash commented Apr 25, 2018

Fix #13893

Signed-off-by: Aswani Prakash aswani15prakash@gmail.com

Before submitting pull request, please check that every commit:

  • Has proper Signed-Off-By
  • Has commit message which describes it
  • Is needed on it's own, if you have just minor fixes to previous commits, you can squash them
  • Any new functionality is covered by tests

Signed-off-by: Aswani Prakash <aswani15prakash@gmail.com>
Copy link
Contributor

@saulotoledo saulotoledo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestions.

@@ -1460,7 +1460,11 @@ public function getSimulatedUpdateQuery(array $analyzed_sql_results)
$diff = array();
foreach ($analyzed_sql_results['statement']->set as $set) {
$columns[] = $set->column;
$diff[] = $set->column . ' <> ' . $set->value;
$not_equal_operator = ' <> ';
if(strtoupper($set->value) == 'NULL'){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to fix the format: if ( and ) { (note the missing spaces).

And how about using ===?

@MauricioFauth MauricioFauth merged commit 594cb7b into phpmyadmin:master May 16, 2018
@MauricioFauth MauricioFauth self-assigned this May 16, 2018
@MauricioFauth MauricioFauth added this to the 4.8.1 milestone May 16, 2018
@MauricioFauth
Copy link
Member

Merged, thanks for your contribution!

@aswaniprakash aswaniprakash deleted the PMA_13893 branch May 25, 2018 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simulating queries produces unexpected results
3 participants