Re: [Geotools-gt2-users] epsg in postgres 8.3.1

2008-05-28 Thread Wouter Schaubroeck
Aha! Workaround works :) First i created a function to convert the string to an int, and than i created the actual cast. This are the sql commands i used: create or replace function convertStringToInteger(character varying) returns integer as 'select to_number($1,''999'')::integer;' la

Re: [Geotools-gt2-users] epsg in postgres 8.3.1

2008-05-28 Thread Martin Desruisseaux
Hello Wouter I opened a JIRA task for this issue. http://jira.codehaus.org/browse/GEOT-1835 In the main time, I would be curious to see if the workaround suggested by Mark Leslie (define the cast as implicit) works? Martin --

Re: [Geotools-gt2-users] epsg in postgres 8.3.1

2008-05-27 Thread Jody Garnett
Mark Leslie wrote: > "Previously, if a non-character value was supplied to an operator or > function that requires text input, it was automatically cast to text, > for most (though not all) built-in data types. This no longer happens: > an explicit cast to text is now required for all non-character

Re: [Geotools-gt2-users] epsg in postgres 8.3.1

2008-05-27 Thread Mark Leslie
2008/5/28 Wouter Schaubroeck <[EMAIL PROTECTED]>: > > Hey all, > > I've upgrade my postgresql version to 8.3.1 (from 8.2.x), and loaded > it with the EPGS data, for using in geotools. While this used to work > with version 8.2, this doesn't with the new version. This is the error > i receive: > > C

[Geotools-gt2-users] epsg in postgres 8.3.1

2008-05-27 Thread Wouter Schaubroeck
Hey all, I've upgrade my postgresql version to 8.3.1 (from 8.2.x), and loaded it with the EPGS data, for using in geotools. While this used to work with version 8.2, this doesn't with the new version. This is the error i receive: Caused by: org.postgresql.util.PSQLException: ERROR: operator does