Index: openacs-4/packages/acs-content-repository/sql/oracle/content-util.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/oracle/content-util.sql,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/acs-content-repository/sql/oracle/content-util.sql 17 Sep 2007 12:58:30 -0000 1.2 +++ openacs-4/packages/acs-content-repository/sql/oracle/content-util.sql 3 Feb 2008 12:43:49 -0000 1.2.2.1 @@ -60,141 +60,69 @@ / show errors - -create or replace procedure string_to_blob_size( - s varchar2, blob_loc blob, blob_size number) +create or replace procedure clob_to_blob( + clob_loc clob, blob_loc blob) as language java name - 'com.arsdigita.content.Util.stringToBlob( - java.lang.String, oracle.sql.BLOB, int + 'com.arsdigita.content.Util.clobToBlob( + oracle.sql.CLOB, oracle.sql.BLOB )'; / show errors -create or replace function blob_to_string (blob_loc IN BLOB) -RETURN VARCHAR2 -IS -v_blength number; -v_ret varchar(32767); -v_amount binary_integer:=10000; -v_offset integer:=1; -v_buffer raw(20000); -BEGIN - v_blength:=dbms_lob.getlength(blob_loc); - IF v_blength=0 THEN - return v_ret; - ELSE - if v_blength