1
0
Fork 0

Merging upstream version 26.2.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 22:00:08 +01:00
parent a5399bd16b
commit 4d0635d636
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
85 changed files with 57142 additions and 52288 deletions

View file

@ -1378,3 +1378,13 @@ COMMENT='客户账户表'"""
"mysql": "SELECT FORMAT(12332.2, 2, 'de_DE')",
},
)
def test_analyze(self):
self.validate_identity("ANALYZE LOCAL TABLE tbl")
self.validate_identity("ANALYZE NO_WRITE_TO_BINLOG TABLE tbl")
self.validate_identity("ANALYZE tbl UPDATE HISTOGRAM ON col1")
self.validate_identity("ANALYZE tbl UPDATE HISTOGRAM ON col1 USING DATA 'json_data'")
self.validate_identity("ANALYZE tbl UPDATE HISTOGRAM ON col1 WITH 5 BUCKETS")
self.validate_identity("ANALYZE tbl UPDATE HISTOGRAM ON col1 WITH 5 BUCKETS AUTO UPDATE")
self.validate_identity("ANALYZE tbl UPDATE HISTOGRAM ON col1 WITH 5 BUCKETS MANUAL UPDATE")
self.validate_identity("ANALYZE tbl DROP HISTOGRAM ON col1")