summaryrefslogtreecommitdiff
path: root/test/dialect/test_mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-10-10 19:34:29 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-10-10 19:34:29 -0400
commit084b559b44bba73becc7e7fa7636d4c5ac99bb55 (patch)
tree482912c75e6bb9cea188f4b55951c43bb1d74d7a /test/dialect/test_mysql.py
parentce2c4509176da6c125ec239931f05a946ac44d58 (diff)
downloadsqlalchemy-084b559b44bba73becc7e7fa7636d4c5ac99bb55.tar.gz
- [feature] Added "collation" parameter to all
String types. When present, renders as COLLATE <collation>. This to support the COLLATE keyword now supported by several databases including MySQL, SQLite, and Postgresql. [ticket:2276] - [change] The Text() type renders the length given to it, if a length was specified.
Diffstat (limited to 'test/dialect/test_mysql.py')
-rw-r--r--test/dialect/test_mysql.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py
index de1df3846..d5ce6e923 100644
--- a/test/dialect/test_mysql.py
+++ b/test/dialect/test_mysql.py
@@ -306,7 +306,11 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL):
'LONGTEXT ASCII'),
(mysql.ENUM, ["foo", "bar"], {'unicode':True},
- '''ENUM('foo','bar') UNICODE''')
+ '''ENUM('foo','bar') UNICODE'''),
+
+ (String, [20], {"collation":"utf8"}, 'VARCHAR(20) COLLATE utf8')
+
+
]
for type_, args, kw, res in columns: