[Dspace-tech] Postgresq 8.3x error

2009-03-25 Thread Jeffrey Trimble
I've run into this error in Dspace 1.4.x when invoking index all  
(after upgrading to 8.3x).


Exception in thread main org.postgresql.util.PSQLException: ERROR:  
operator does not exist: integer = character varying


I've read some postings on other listservs the following solution.   
Has **anyone** seen or done this?  Or is there another work

around?

CREATE FUNCTION pg_catalog.text(integer) RETURNS text STRICT IMMUTABLE  
LANGUAGE SQL AS 'SELECT textin(int4out($1));';
CREATE CAST (integer AS text) WITH FUNCTION pg_catalog.text(integer)  
AS IMPLICIT;
COMMENT ON FUNCTION pg_catalog.text(integer) IS 'convert integer to  
text';


CREATE FUNCTION pg_catalog.text(bigint) RETURNS text STRICT IMMUTABLE  
LANGUAGE SQL AS 'SELECT textin(int8out($1));';
CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS  
IMPLICIT;

COMMENT ON FUNCTION pg_catalog.text(bigint) IS 'convert bigint to text';

Thanks in advance,


Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jtrim...@cc.ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Postgresq 8.3x error

2009-03-25 Thread Allen Lam
dspace 1.4.x does not work with postgres 8.3.

Your workaround options are upgrading to dspace 1.5.x or downgrading 
postgres to 8.2.

If you want to fix it in a hurry, changing postgres version is easier.

Regards,
Allen Lam.
HKU Hub Administrator, http://hub.hku.hk

Jeffrey Trimble wrote:
 I've run into this error in Dspace 1.4.x when invoking index all 
 (after upgrading to 8.3x).

 Exception in thread main org.postgresql.util.PSQLException: ERROR: 
 operator does not exist: integer = character varying

 I've read some postings on other listservs the following solution. 
  Has **anyone** seen or done this?  Or is there another work
 around?

 CREATE FUNCTION pg_catalog.text(integer) RETURNS text STRICT IMMUTABLE 
 LANGUAGE SQL AS 'SELECT textin(int4out($1));';
 CREATE CAST (integer AS text) WITH FUNCTION pg_catalog.text(integer) 
 AS IMPLICIT;
 COMMENT ON FUNCTION pg_catalog.text(integer) IS 'convert integer to text';

 CREATE FUNCTION pg_catalog.text(bigint) RETURNS text STRICT IMMUTABLE 
 LANGUAGE SQL AS 'SELECT textin(int8out($1));';
 CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS 
 IMPLICIT;
 COMMENT ON FUNCTION pg_catalog.text(bigint) IS 'convert bigint to text';

 Thanks in advance,


 Jeffrey Trimble
 System LIbrarian
 William F.  Maag Library
 Youngstown State University
 330.941.2483 (Office)
 jtrim...@cc.ysu.edu mailto:jtrim...@cc.ysu.edu
 http://www.maag.ysu.edu
 http://digital.maag.ysu.edu


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech