fixed TeradataAdapter CLOB, thnaks Andrew Willmott

This commit is contained in:
mdipierro
2013-11-03 22:46:20 -06:00
parent 350bd25404
commit 8e4f92ac64
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.11.03.09.25.26
Version 2.7.4-stable+timestamp.2013.11.03.22.45.08
+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',