Re: [BUGS] Query Problem!!

2001-01-14 Thread Tom Lane
<[EMAIL PROTECTED]> writes: > I have PostgreSQL v7.02 in RedHat 6.2; >   > I have problem with is Query: > select name, 'user' as class from smuser u= > nion=20 > select name, 'group' as class from smgroup order by class; >   Please turn off HTML mail :-( The problem is with the nonspecific-typ

Re: [BUGS] Query Problem!!

2001-01-14 Thread Yoshihiko Ichikawa
On Mon, 8 Jan 2001 15:50:42 -0400, <[EMAIL PROTECTED]> wrote: > I have PostgreSQL v7.02 in RedHat 6.2; > > I have problem with is Query: > select name, 'user' as class from smuser union select name, 'group' as class from >smgroup order by class; > > sentence problem is:{ order by class} >

[BUGS] Query Problem!!

2001-01-14 Thread christiangda
I have PostgreSQL v7.02 in RedHat 6.2;   I have problem with is Query: select name, 'user' as class from smuser union select name, 'group' as class from smgroup order by class;   sentence problem is:{ order by class}     thank you, Christian Gonzalez

[BUGS] Problems Compiling on a R3000 MIPS

2001-01-14 Thread Michael Richards
Hi. I'm trying to compile 7.0.3 on a MIPS1 R3000 processor under NetBSD. It pukes on the infamous s_lock.c file because of some assembler that's expecting a MIPS2 processor. gcc -I../../../include -I../../../backend -O2 -pipe -Wall -Wmissing- prototypes -Wmissing-declarations -I../.. -c -

Re: [BUGS] Bug in SQL functions that use a NULL parameter directly

2001-01-14 Thread Stephan Szabo
On Sun, 14 Jan 2001, Michael Richards wrote: > I do not understand how this can possibly be correct unless NULL is > not permitted in a function. > > In one case, I've got: > WHERE value= $1 > Which is called with NULL and therefore should be: > WHERE value= NULL > This fails. Right, but value

Re: [BUGS] Bug in SQL functions that use a NULL parameter directly

2001-01-14 Thread Michael Richards
I do not understand how this can possibly be correct unless NULL is not permitted in a function. In one case, I've got: WHERE value= $1 Which is called with NULL and therefore should be: WHERE value= NULL This fails. The other case which is logically equivalent I've got: WHERE value= $1 OR ($1=

Re: [BUGS] Strange results with interval types computations

2001-01-14 Thread Tom Lane
[EMAIL PROTECTED] writes: > ez_money=> select '10/01/2000'::date+'1 month'::interval; > ?column? > -- > 2000-10-31 23:00:00+01 > (1 row) DST transition problem. It's fixed in current sources. regards, tom lane

[BUGS] Strange results with interval types computations

2001-01-14 Thread pgsql-bugs
Laurent HERVE ([EMAIL PROTECTED]) reports a bug with a severity of 3 The lower the number the more severe it is. Short Description Strange results with interval types computations Long Description Look at those two queries : ez_money=> select '10/01/2000'::date+'1 month'::interval; ?column? ---

Re: [BUGS] Database corruption in RH 6.2/prepackaged PG

2001-01-14 Thread Tom Lane
[EMAIL PROTECTED] writes: > Problem description: > The nightly cron jobs return me the following message: > > dumpClasses(): command failed. Explanation from backend: 'pqReadData() -- backend >closed the channel unexpectedly. > This probably means the backend terminated abnormally >

[BUGS] Database corruption in RH 6.2/prepackaged PG

2001-01-14 Thread pgsql-bugs
Saku Airila ([EMAIL PROTECTED]) reports a bug with a severity of 1 The lower the number the more severe it is. Short Description Database corruption in RH 6.2/prepackaged PG Long Description Random database corruption. The system I'm running has ~10 databases online on a single server without ot

Re: [BUGS] Bug in SQL functions that use a NULL parameter directly

2001-01-14 Thread Stephan Szabo
On Sun, 14 Jan 2001, Michael Richards wrote: > Hi. > > I'm using 7.0.3 and I've found a bug: > > create table test(value int4); > create function testfunc(int4) > RETURNS bool AS > 'SELECT count(*)>0 AS RESULT FROM test where value= $1' > language 'SQL'; > > So I want this