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

Test for SET @@SESSION.sql_log_bin in sql static validations #669

Merged
merged 4 commits into from
Feb 23, 2021

Conversation

elazzabi
Copy link
Member

@elazzabi elazzabi commented Feb 1, 2021

Description

This adds a test for SET @@SESSION.sql_log_bin usually added by mysqldump to SQL files. More info https://dev.mysql.com/doc/refman/8.0/en/set-sql-log-bin.html

Steps to Test

An automated test case was added.

dchymko
dchymko previously approved these changes Feb 1, 2021
Copy link
Contributor

@dchymko dchymko left a comment

Choose a reason for hiding this comment

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

LGTM!

outputFormatter: errorCheckFormatter,
results: [],
message: 'SET @@SESSION.sql_log_bin statement',
excerpt: '\'SET @@SESSION.sql_log_bin=0\' statement should not be present (case-insensitive)',
Copy link
Contributor

Choose a reason for hiding this comment

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

Super minor, but we probably don't need the =0 here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh yeah good catch!

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

@elazzabi
Copy link
Member Author

@markowsiak @jblz forgot to merge this before, so going to merge it now.

@elazzabi elazzabi merged commit 88a739e into master Feb 23, 2021
@elazzabi elazzabi deleted the add/new-static-test-case-for-sql branch February 23, 2021 10:32
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.

2 participants