summaryrefslogtreecommitdiff
path: root/test/dialect/mysql.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-09-06 18:46:53 +0000
committerJason Kirtland <jek@discorporate.us>2007-09-06 18:46:53 +0000
commita072e50c9d28eac08882ecb5bf274f423f0a4508 (patch)
tree8244329d78c2a71aab8d9f9ce2c43d62cf1f80bc /test/dialect/mysql.py
parent4245d758850bf847d87fe2c9b48d3df82e578c2c (diff)
downloadsqlalchemy-a072e50c9d28eac08882ecb5bf274f423f0a4508.tar.gz
mysql SETs and ENUMs now unescape embedded quotes before storage in .enums and .values. An ancient bug.
Diffstat (limited to 'test/dialect/mysql.py')
-rw-r--r--test/dialect/mysql.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/dialect/mysql.py b/test/dialect/mysql.py
index 8a5bac6e6..2ea7abf03 100644
--- a/test/dialect/mysql.py
+++ b/test/dialect/mysql.py
@@ -567,17 +567,17 @@ class TypesTest(AssertMixin):
Column('e2', mysql.MSEnum("''")),
Column('e3', mysql.MSEnum("'a'", "''")),
Column('e4', mysql.MSEnum("''", "'a'")),
- Column('e5', mysql.MSEnum("''", "'''a'''", "'b''b'")))
+ Column('e5', mysql.MSEnum("''", "'''a'''", "'b''b'", "''''")))
try:
enum_table.create()
reflected = Table('mysql_enum', MetaData(testbase.db),
autoload=True)
for t in enum_table, reflected:
- assert t.c.e1.type.enums == ['a']
- assert t.c.e2.type.enums == ['']
- assert t.c.e3.type.enums == ['a', '']
- assert t.c.e4.type.enums == ['', 'a']
- assert t.c.e5.type.enums == ['', "''a''", "b''b"]
+ assert t.c.e1.type.enums == ["a"]
+ assert t.c.e2.type.enums == [""]
+ assert t.c.e3.type.enums == ["a", ""]
+ assert t.c.e4.type.enums == ["", "a"]
+ assert t.c.e5.type.enums == ["", "'a'", "b'b", "'"]
finally:
enum_table.drop()