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

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