Closed
Description
Migrated issue, originally created by Landon Neale (@lneale)
In SQL Server 2012, the ntext has been deprecated; however, for sql alchemy 0.9.4 for p2.7, it still uses the ntext in the mssql dialects which causes issues/sql type errors. Found solution in C:\Python2732\Lib\site-packages\sqlalchemy-0.9.4-py2.7.egg\sqlalchemy\dialects\mssql\base.py and replacing references to nvarchar.
Attachments: 3039.patch
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
sqlalchemy-bot commentedon May 2, 2014
Michael Bayer (@zzzeek) wrote:
what type does SQL Server 2012 offer for arbitrarily large text that is unicode ? NVARCHAR is a fixed size; unless SQL Server 2012 allows arbitrary-sized NVARCHAR that's not an option.
sqlalchemy-bot commentedon May 2, 2014
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon May 2, 2014
Landon Neale (@lneale) wrote:
http://technet.microsoft.com/en-us/library/ms187993.aspx
nvarchar is a variable length type
sqlalchemy-bot commentedon May 2, 2014
Michael Bayer (@zzzeek) wrote:
OK so this is TEXT also and they want to use varchar(max).
However, this means that the Text()/ UnicodeText() types just shouldn't be used with SQL Server. You can instead use String()/Unicode(), which will render as "varchar(max)" / "nvarchar(max)" right now if you don't give them a length.
As it stands, changing Text/UnicodeText to spit out (n)varchar(max) seems like it would be pretty backwards incompatible/surprising for existing users.
sqlalchemy-bot commentedon May 19, 2014
Michael Bayer (@zzzeek) wrote:
this is going to surprise people so it'll be for 1.0
sqlalchemy-bot commentedon May 19, 2014
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon May 19, 2014
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon May 19, 2014
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon Dec 6, 2014
Michael Bayer (@zzzeek) wrote:
VARBINARY(max) for large text/binary types. The MSSQL dialect will
now respect this based on version detection, as well as the new
deprecate_large_types
flag.fixes ntext - sql server #3039
→ c8817e6
sqlalchemy-bot commentedon Dec 6, 2014
Changes by Michael Bayer (@zzzeek):
1 remaining item