Re: [BUGS] Output of date_part('quarter', date)

2001-01-06 Thread Thomas Lockhart
> I tried to use function date_part('quarter', date) in query and I have > got wrong results... Yeesh! Don't know what I was thinking at the time, but it sure is wrong. If you have PostgreSQL built from source, then you can fix this by editing src/backend/utils/timestamp.c on or around line 2056.

[BUGS] Warning: PostgresSQL query failed????`

2001-01-06 Thread ineck
Anyone can help with that one? Warning: PostgresSQL query failed: ERROR: cannot find attribute 10 of relation pg_am in [..] Warning: 0 is not a PostgresSQL result index in Thanks in advice ineck

[BUGS] postgresql on vax?

2001-01-06 Thread bart sikkes
Hello, According to your list of supported platforms postgresql 7.0 would probably compile on the vax port of NetBSD. Is that true? Because i tried and couldn't really get it to work. greetings, bart sikkes

[BUGS] Concat error in PL/pgsql

2001-01-06 Thread Hans Peter Wuermli
I don't have a bug template at hand. Within a plpgsql function, concatenating TEXT strings from tables that allow NULL values return nil results. Please run the following. The result of the second select is nil. Cheers, H.P. --- create

Re: [BUGS] Concat error in PL/pgsql

2001-01-06 Thread Tom Lane
Hans Peter Wuermli <[EMAIL PROTECTED]> writes: > Within a plpgsql function, concatenating TEXT strings from tables that > allow NULL values return nil results. That's not a bug: NULL concatenated with anything produces NULL, per SQL92 specification. If you want a NULL to act like an empty string

[BUGS] boolean bugs

2001-01-06 Thread Robert B. Easter
CREATE TABLE nulltest (nullfield); INSERT INTO nulltest VALUES (null); pgcvs=# select (nullfield = 'willbenull') is null from nulltest; ?column? -- t (1 row) pgcvs=# select (nullfield = 'willbenull') is true from nulltest; ?column? -- (1 row) pgcvs=# select (nullfield = 'w

Re: [BUGS] boolean bugs

2001-01-06 Thread Tom Lane
"Robert B. Easter" <[EMAIL PROTECTED]> writes: > The IS operator is supposed to return only TRUE or FALSE, never NULL. See > ISO/IEC 9075-2:1999 6.30 Yeah, we do not implement IS TRUE, IS FALSE, etc per spec. IS [NOT] NULL is the only one of the group that works per-spec; the others all er

Re: [BUGS] boolean bugs

2001-01-06 Thread Robert B. Easter
On Saturday 06 January 2001 17:56, Tom Lane wrote: > "Robert B. Easter" <[EMAIL PROTECTED]> writes: > > The IS operator is supposed to return only TRUE or FALSE, never NULL. > > See ISO/IEC 9075-2:1999 6.30 > > Yeah, we do not implement IS TRUE, IS FALSE, etc per spec. IS [NOT] NULL > is the o

RE: [BUGS] Concat error in PL/pgsql

2001-01-06 Thread Andrew Snow
Simple add lines as shown: > for r in select * from tconcattest loop IF r.str IS NOT NULL THEN > output := output || r.str; END IF; > end loop; - Andrew