From 8e4f92ac64682836e3d228727f872cc962043aa8 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 3 Nov 2013 22:46:20 -0600 Subject: [PATCH] fixed TeradataAdapter CLOB, thnaks Andrew Willmott --- VERSION | 2 +- gluon/dal.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 8a3dad48..8547898d 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/dal.py b/gluon/dal.py index 715b42e4..95e28d78 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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',