teradata adapter improvement, thanks Andrew

This commit is contained in:
Massimo Di Pierro
2012-04-01 23:38:08 -05:00
parent c26dbeaff1
commit c268c3eacf
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-04-01 23:20:43) dev
Version 1.99.7 (2012-04-01 23:37:42) dev
+5 -2
View File
@@ -3052,8 +3052,11 @@ class TeradataAdapter(BaseAdapter):
'time': 'TIME',
'datetime': 'TIMESTAMP',
'id': 'INTEGER GENERATED ALWAYS AS IDENTITY', # Teradata Specific
# Modified Constraint syntax for Teradata.
'reference TFK': ' CONSTRAINT FK_%(foreign_table)s_PK FOREIGN KEY (%(field_name)s) REFERENCES %(foreign_table)s (%(foreign_key)s)',
# Modified Constraint syntax for Teradata.
# Teradata does not support ON DELETE.
'reference': 'INT',
'reference FK': ' REFERENCES %(foreign_key)s',
'reference TFK': ' FOREIGN KEY (%(field_name)s) REFERENCES %(foreign_table)s (%(foreign_key)s)',
'list:integer': 'CLOB',
'list:string': 'CLOB',
'list:reference': 'CLOB',