]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
is_unicode propigated into String subclasses
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Feb 2006 23:38:38 +0000 (23:38 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Feb 2006 23:38:38 +0000 (23:38 +0000)
lib/sqlalchemy/types.py

index fafae076b703a30a5a026e4c9874f0cddacdf62d..ce1cec778aa87bde61a036cf330acf15b5a9c43e 100644 (file)
@@ -71,7 +71,7 @@ class String(NullTypeEngine):
         self.length = length
         self.is_unicode = is_unicode
     def adapt(self, typeobj):
-        return typeobj(self.length)
+        return typeobj(self.length, self.is_unicode)
     def adapt_args(self):
         if self.length is None:
             return TEXT(is_unicode=self.is_unicode)