Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-19 Thread Aarni
On Friday 19 December 2008 01:29:06 you wrote: > Aarni writes: > > "ERROR: operator does not exist: character varying = integer at > > character 286 HINT: No operator matches the given name and argument > > type(s). You might need to add explicit type casts." > > > > Quick fix to sql statements

Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-18 Thread Gregory Stark
Aarni writes: > "ERROR: operator does not exist: character varying = integer at character 286 > HINT: No operator matches the given name and argument type(s). You might > need > to add explicit type casts." > > Quick fix to sql statements eg. > > ... WHERE CAST (your_char AS INTEGER) = integ

Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-18 Thread Aarni
On Thursday 18 December 2008 12:46:38 Peter Eisentraut wrote: > novnov wrote: > > I have restored a postgres 8.2.4-1 db onto a postgres 8.3.1-1 server, and > > when I try to work with a table I get this error: > > > > Error: Operator does not exist: "char" = integer > > > > Hopefully that is enough

Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-18 Thread novnov
The error went away; I updated the admin tool I use (pg lightning admin) and that seemed to help. Thanks everyone. Julius Tuskenis-2 wrote: > > Raymond O'Donnell rašė: >> A lot of previously automatic casts were removed in the 8.3 series - >> this is possibly one of them. >> >> You now need t

Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-18 Thread Julius Tuskenis
Raymond O'Donnell rašė: A lot of previously automatic casts were removed in the 8.3 series - this is possibly one of them. You now need to cast explicitly in such cases, e.g. select '5'::integer; Ray. That is a good advice and a good practice. But the solution usually takes time. For a q

Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-18 Thread Peter Eisentraut
novnov wrote: I have restored a postgres 8.2.4-1 db onto a postgres 8.3.1-1 server, and when I try to work with a table I get this error: Error: Operator does not exist: "char" = integer Hopefully that is enough of a clue to be useful. Maybe this is the first time I've tried moving one of my no

Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-18 Thread Raymond O'Donnell
On 18/12/2008 05:26, novnov wrote: > I have restored a postgres 8.2.4-1 db onto a postgres 8.3.1-1 server, and > when I try to work with a table I get this error: > > Error: Operator does not exist: "char" = integer A lot of previously automatic casts were removed in the 8.3 series - this is poss

Re: [GENERAL] Error: Operator does not exist: "char"=integer

2008-12-17 Thread Scott Marlowe
On Wed, Dec 17, 2008 at 10:26 PM, novnov wrote: > > I have restored a postgres 8.2.4-1 db onto a postgres 8.3.1-1 server, and > when I try to work with a table I get this error: > > Error: Operator does not exist: "char" = integer What's the schema of the table, and the query that is failing? --

[GENERAL] Error: Operator does not exist: "char"=integer

2008-12-17 Thread novnov
I have restored a postgres 8.2.4-1 db onto a postgres 8.3.1-1 server, and when I try to work with a table I get this error: Error: Operator does not exist: "char" = integer Hopefully that is enough of a clue to be useful. Maybe this is the first time I've tried moving one of my non-trivial pg pr