fixed TeradataAdapter CLOB, thnaks Andrew Willmott

This commit is contained in:
mdipierro committed 2013-11-03 22:46:20 -06:00
1 parent 350bd25404
commit 8e4f92ac64
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -4011,8 +4011,8 @@ class TeradataAdapter(BaseAdapter):
types = {
'boolean': 'CHAR(1)',
'string': 'VARCHAR(%(length)s)',
'text': 'CLOB',
'json': 'CLOB',
'text': 'VARCHAR(2000)',
'json': 'VARCHAR(4000)',
'password': 'VARCHAR(%(length)s)',
'blob': 'BLOB',
'upload': 'VARCHAR(%(length)s)',
@@ -4028,9 +4028,9 @@ class TeradataAdapter(BaseAdapter):
# Teradata does not support ON DELETE.
'id': 'INT GENERATED ALWAYS AS IDENTITY', # Teradata Specific
'reference': 'INT',
'list:integer': 'CLOB',
'list:string': 'CLOB',
'list:reference': 'CLOB',
'list:integer': 'VARCHAR(4000)',
'list:string': 'VARCHAR(4000)',
'list:reference': 'VARCHAR(4000)',
'big-id': 'BIGINT GENERATED ALWAYS AS IDENTITY', # Teradata Specific
'big-reference': 'BIGINT',
'reference FK': ' REFERENCES %(foreign_key)s',