Merging upstream version 10.1.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
582b160275
commit
a5128ea109
57 changed files with 1542 additions and 529 deletions
|
@ -23,6 +23,8 @@ class TestMySQL(Validator):
|
|||
self.validate_identity("SELECT TRIM('bla' FROM ' XXX ')")
|
||||
self.validate_identity("@@GLOBAL.max_connections")
|
||||
|
||||
self.validate_identity("CREATE TABLE A LIKE B")
|
||||
|
||||
# SET Commands
|
||||
self.validate_identity("SET @var_name = expr")
|
||||
self.validate_identity("SET @name = 43")
|
||||
|
@ -177,14 +179,27 @@ class TestMySQL(Validator):
|
|||
"GROUP_CONCAT(DISTINCT x ORDER BY y DESC)",
|
||||
write={
|
||||
"mysql": "GROUP_CONCAT(DISTINCT x ORDER BY y DESC SEPARATOR ',')",
|
||||
"sqlite": "GROUP_CONCAT(DISTINCT x ORDER BY y DESC)",
|
||||
"sqlite": "GROUP_CONCAT(DISTINCT x)",
|
||||
"tsql": "STRING_AGG(x, ',') WITHIN GROUP (ORDER BY y DESC)",
|
||||
"postgres": "STRING_AGG(DISTINCT x, ',' ORDER BY y DESC NULLS LAST)",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"GROUP_CONCAT(x ORDER BY y SEPARATOR z)",
|
||||
write={
|
||||
"mysql": "GROUP_CONCAT(x ORDER BY y SEPARATOR z)",
|
||||
"sqlite": "GROUP_CONCAT(x, z)",
|
||||
"tsql": "STRING_AGG(x, z) WITHIN GROUP (ORDER BY y)",
|
||||
"postgres": "STRING_AGG(x, z ORDER BY y NULLS FIRST)",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
"GROUP_CONCAT(DISTINCT x ORDER BY y DESC SEPARATOR '')",
|
||||
write={
|
||||
"mysql": "GROUP_CONCAT(DISTINCT x ORDER BY y DESC SEPARATOR '')",
|
||||
"sqlite": "GROUP_CONCAT(DISTINCT x ORDER BY y DESC, '')",
|
||||
"sqlite": "GROUP_CONCAT(DISTINCT x, '')",
|
||||
"tsql": "STRING_AGG(x, '') WITHIN GROUP (ORDER BY y DESC)",
|
||||
"postgres": "STRING_AGG(DISTINCT x, '' ORDER BY y DESC NULLS LAST)",
|
||||
},
|
||||
)
|
||||
self.validate_identity(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue