Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into snowflake_transaction_statements
- Loading branch information
Showing
7 changed files
with
218 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PURGE BINARY LOGS TO 'mysql-bin.010'; | ||
|
||
PURGE BINARY LOGS BEFORE '2019-04-02 22:46:26'; | ||
PURGE BINARY LOGS BEFORE DATETIME '2019-04-02 22:46:26'; | ||
PURGE BINARY LOGS BEFORE TIMESTAMP '2019-04-02 22:46:26'; | ||
|
||
PURGE BINARY LOGS BEFORE 19830905132800; | ||
PURGE BINARY LOGS BEFORE DATETIME 19830905132800; | ||
PURGE BINARY LOGS BEFORE TIMESTAMP 19830905132800; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# YML test files are auto-generated from SQL files and should not be edited by | ||
# hand. To help enforce this, the "hash" field in the file must match a hash | ||
# computed by SQLFluff when running the tests. Please run | ||
# `python test/generate_parse_fixture_yml.py` to generate them after adding or | ||
# altering SQL files. | ||
_hash: fd25d700f1df99b7fc2fb7ee7027f66c180d3cfe7723d0c80eddec684c8eb0f1 | ||
file: | ||
- statement: | ||
purge_binary_logs_statement: | ||
- keyword: PURGE | ||
- keyword: BINARY | ||
- keyword: LOGS | ||
- keyword: TO | ||
- literal: "'mysql-bin.010'" | ||
- statement_terminator: ; | ||
- statement: | ||
purge_binary_logs_statement: | ||
- keyword: PURGE | ||
- keyword: BINARY | ||
- keyword: LOGS | ||
- keyword: BEFORE | ||
- literal: "'2019-04-02 22:46:26'" | ||
- statement_terminator: ; | ||
- statement: | ||
purge_binary_logs_statement: | ||
- keyword: PURGE | ||
- keyword: BINARY | ||
- keyword: LOGS | ||
- keyword: BEFORE | ||
- keyword: DATETIME | ||
- literal: "'2019-04-02 22:46:26'" | ||
- statement_terminator: ; | ||
- statement: | ||
purge_binary_logs_statement: | ||
- keyword: PURGE | ||
- keyword: BINARY | ||
- keyword: LOGS | ||
- keyword: BEFORE | ||
- keyword: TIMESTAMP | ||
- literal: "'2019-04-02 22:46:26'" | ||
- statement_terminator: ; | ||
- statement: | ||
purge_binary_logs_statement: | ||
- keyword: PURGE | ||
- keyword: BINARY | ||
- keyword: LOGS | ||
- keyword: BEFORE | ||
- literal: '19830905132800' | ||
- statement_terminator: ; | ||
- statement: | ||
purge_binary_logs_statement: | ||
- keyword: PURGE | ||
- keyword: BINARY | ||
- keyword: LOGS | ||
- keyword: BEFORE | ||
- keyword: DATETIME | ||
- literal: '19830905132800' | ||
- statement_terminator: ; | ||
- statement: | ||
purge_binary_logs_statement: | ||
- keyword: PURGE | ||
- keyword: BINARY | ||
- keyword: LOGS | ||
- keyword: BEFORE | ||
- keyword: TIMESTAMP | ||
- literal: '19830905132800' | ||
- statement_terminator: ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
RENAME TABLE old_table TO new_table; | ||
RENAME TABLE old_table1 TO new_table1, old_table2 TO new_table2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# YML test files are auto-generated from SQL files and should not be edited by | ||
# hand. To help enforce this, the "hash" field in the file must match a hash | ||
# computed by SQLFluff when running the tests. Please run | ||
# `python test/generate_parse_fixture_yml.py` to generate them after adding or | ||
# altering SQL files. | ||
_hash: 35d8fe3a09bff9c94b970575e42ed1151b0da0a2c8627f21a8d98725ffebc9dd | ||
file: | ||
- statement: | ||
rename_table_statement: | ||
- keyword: RENAME | ||
- keyword: TABLE | ||
- table_reference: | ||
identifier: old_table | ||
- keyword: TO | ||
- table_reference: | ||
identifier: new_table | ||
- statement_terminator: ; | ||
- statement: | ||
rename_table_statement: | ||
- keyword: RENAME | ||
- keyword: TABLE | ||
- table_reference: | ||
identifier: old_table1 | ||
- keyword: TO | ||
- table_reference: | ||
identifier: new_table1 | ||
- comma: ',' | ||
- table_reference: | ||
identifier: old_table2 | ||
- keyword: TO | ||
- table_reference: | ||
identifier: new_table2 | ||
- statement_terminator: ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
RESET MASTER; | ||
RESET MASTER TO 1234; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# YML test files are auto-generated from SQL files and should not be edited by | ||
# hand. To help enforce this, the "hash" field in the file must match a hash | ||
# computed by SQLFluff when running the tests. Please run | ||
# `python test/generate_parse_fixture_yml.py` to generate them after adding or | ||
# altering SQL files. | ||
_hash: ac03a8182b993644c46f57e6bd10e8f4ff6d161b4af6f8b47bbd89629afe67a7 | ||
file: | ||
- statement: | ||
reset_master_statement: | ||
- keyword: RESET | ||
- keyword: MASTER | ||
- statement_terminator: ; | ||
- statement: | ||
reset_master_statement: | ||
- keyword: RESET | ||
- keyword: MASTER | ||
- keyword: TO | ||
- literal: '1234' | ||
- statement_terminator: ; |