summaryrefslogtreecommitdiffstats
path: root/tests/dialects/test_mysql.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-10 08:53:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-10 08:53:10 +0000
commitf7cb7fdb0fb5a8e2d053c1aa18dd98462401a64e (patch)
tree75bbd792c82b8d1e70b5561de82a5b270b61867c /tests/dialects/test_mysql.py
parentAdding upstream version 18.11.2. (diff)
downloadsqlglot-f7cb7fdb0fb5a8e2d053c1aa18dd98462401a64e.tar.xz
sqlglot-f7cb7fdb0fb5a8e2d053c1aa18dd98462401a64e.zip
Adding upstream version 18.11.6.upstream/18.11.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/dialects/test_mysql.py')
-rw-r--r--tests/dialects/test_mysql.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dialects/test_mysql.py b/tests/dialects/test_mysql.py
index 11f921c..14a864b 100644
--- a/tests/dialects/test_mysql.py
+++ b/tests/dialects/test_mysql.py
@@ -30,6 +30,9 @@ class TestMySQL(Validator):
self.validate_identity("CREATE TABLE foo (a BIGINT, FULLTEXT INDEX (b))")
self.validate_identity("CREATE TABLE foo (a BIGINT, SPATIAL INDEX (b))")
self.validate_identity(
+ "CREATE TABLE `oauth_consumer` (`key` VARCHAR(32) NOT NULL, UNIQUE `OAUTH_CONSUMER_KEY` (`key`))"
+ )
+ self.validate_identity(
"CREATE TABLE `x` (`username` VARCHAR(200), PRIMARY KEY (`username`(16)))"
)
self.validate_identity(