- changed status to resolved
overriding compilation of existing constructs doesn't create a "default" back to the original
Issue #1838
resolved
import sqlalchemy as sa
from sqlalchemy.ext.compiler import compiles
from sqlalchemy.dialects.mssql.base import MSUniqueIdentifier
from sqlalchemy import schema
@compiles(MSUniqueIdentifier, 'sqlite')
def compile_msuniqueidentifier(element, compiler, **kw):
element.length = None
return compiler.visit_NVARCHAR(element, **kw)
t1 = sa.Table('foo', sa.MetaData(), sa.Column('bar', MSUniqueIdentifier()))
print schema.CreateTable(t1)
Comments (2)
-
reporter -
reporter - removed milestone
Removing milestone: 0.6.2 (automated comment)
- Log in to comment
0025a6a50eabe323c353681a1dd3949c8e57bb9b