its using type_descriptor(), but when you use a TypeDecorator, such as the Unicode type, it calls type_descriptor given an "impl" type, which is a class-level variable (and if you look at types.Unicode youll see its "String"). since there is no "database" type for Unicode or PickleType, for example..they delegate to their official "database" type in this manner. its worked this way since around the end of the 0.1 series.
so if you want the Unicode type to not use VARCHAR when used with MS-SQL, and you are OK using a subclass MSUnicode, then just change the "impl" to point to NVARCHAR instead of String as the "database" type. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---