From: Fabien Wernli Date: Wed, 24 Feb 2010 17:17:46 +0000 (+0000) Subject: text back to clob X-Git-Tag: v0.11008~56 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d570aec7f3e6d6f1e7ed028e99598ca73a05b6d6;p=dbsrgits%2FSQL-Translator.git text back to clob --- diff --git a/lib/SQL/Translator/Producer/Oracle.pm b/lib/SQL/Translator/Producer/Oracle.pm index 1996140..0844dc6 100644 --- a/lib/SQL/Translator/Producer/Oracle.pm +++ b/lib/SQL/Translator/Producer/Oracle.pm @@ -133,7 +133,7 @@ my %translate = ( mediumblob => 'blob', longblob => 'blob', tinytext => 'varchar2', - text => 'varchar2', + text => 'clob', longtext => 'clob', mediumtext => 'clob', enum => 'varchar2', diff --git a/t/51-xml-to-oracle.t b/t/51-xml-to-oracle.t index 0d4e626..d7cff87 100644 --- a/t/51-xml-to-oracle.t +++ b/t/51-xml-to-oracle.t @@ -46,7 +46,7 @@ my $want = [ 'CREATE TABLE Basic ( id number(10) NOT NULL, title varchar2(100) DEFAULT \'hello\' NOT NULL, - description varchar2 DEFAULT \'\', + description clob DEFAULT \'\', email varchar2(500), explicitnulldef varchar2, explicitemptystring varchar2 DEFAULT \'\', @@ -110,7 +110,7 @@ CREATE SEQUENCE sq_Basic_id01; CREATE TABLE Basic ( id number(10) NOT NULL, title varchar2(100) DEFAULT 'hello' NOT NULL, - description varchar2 DEFAULT '', + description clob DEFAULT '', email varchar2(500), explicitnulldef varchar2, explicitemptystring varchar2 DEFAULT '', diff --git a/t/51-xml-to-oracle_quoted.t b/t/51-xml-to-oracle_quoted.t index 73627ec..c5dddd7 100644 --- a/t/51-xml-to-oracle_quoted.t +++ b/t/51-xml-to-oracle_quoted.t @@ -46,7 +46,7 @@ my $want = [ 'CREATE TABLE "Basic" ( "id" number(10) NOT NULL, "title" varchar2(100) DEFAULT \'hello\' NOT NULL, - "description" varchar2 DEFAULT \'\', + "description" clob DEFAULT \'\', "email" varchar2(500), "explicitnulldef" varchar2, "explicitemptystring" varchar2 DEFAULT \'\', @@ -110,7 +110,7 @@ CREATE SEQUENCE "sq_Basic_id01"; CREATE TABLE "Basic" ( "id" number(10) NOT NULL, "title" varchar2(100) DEFAULT 'hello' NOT NULL, - "description" varchar2 DEFAULT '', + "description" clob DEFAULT '', "email" varchar2(500), "explicitnulldef" varchar2, "explicitemptystring" varchar2 DEFAULT '',