From 092ef99b0d1e30c557beb1b6f12a64d25a9f4b4b Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 9 Jul 2012 21:39:07 -0500 Subject: [PATCH] fixed oracle bigint, thanks faridgs --- VERSION | 2 +- gluon/dal.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index e2be58be..482e490f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-09 21:09:52) dev +Version 2.00.0 (2012-07-09 21:39:03) dev diff --git a/gluon/dal.py b/gluon/dal.py index 616b64d1..0936f939 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -2487,9 +2487,9 @@ class OracleAdapter(BaseAdapter): 'blob': 'CLOB', 'upload': 'VARCHAR2(%(length)s)', 'integer': 'INT', - 'bigint': 'BIGINT', + 'bigint': 'NUMBER', 'float': 'FLOAT', - 'double': 'DOUBLE', + 'double': 'BINARY_DOUBLE', 'decimal': 'NUMERIC(%(precision)s,%(scale)s)', 'date': 'DATE', 'time': 'CHAR(8)', @@ -2499,8 +2499,8 @@ class OracleAdapter(BaseAdapter): 'list:integer': 'CLOB', 'list:string': 'CLOB', 'list:reference': 'CLOB', - 'big-id': 'BIGINT PRIMARY KEY', - 'big-reference': 'BIGINT, CONSTRAINT %(constraint_name)s FOREIGN KEY (%(field_name)s) REFERENCES %(foreign_key)s ON DELETE %(on_delete_action)s', + 'big-id': 'NUMBER PRIMARY KEY', + 'big-reference': 'NUMBER, CONSTRAINT %(constraint_name)s FOREIGN KEY (%(field_name)s) REFERENCES %(foreign_key)s ON DELETE %(on_delete_action)s', 'reference FK': ', CONSTRAINT FK_%(constraint_name)s FOREIGN KEY (%(field_name)s) REFERENCES %(foreign_key)s ON DELETE %(on_delete_action)s', 'reference TFK': ' CONSTRAINT FK_%(foreign_table)s_PK FOREIGN KEY (%(field_name)s) REFERENCES %(foreign_table)s (%(foreign_key)s) ON DELETE %(on_delete_action)s', }