Re: [BUGS] arrays broken in 7.1.3? also, support for embedded tables present?

2002-01-09 Thread Tom Lane
"Robby Dermody" <[EMAIL PROTECTED]> writes: > allshotup=# CREATE TABLE foo (bla0 text, bla1 varchar(20)[], bla2 > char(20)[], bla3 text[]); > CREATE > allshotup=# INSERT INTO foo (bla0) VALUES ('test'); > INSERT 19408 1 > allshotup=# UPDATE foo SET bla1[1] = 'bla1', bla2[1] = 'bla2', bla3[1] = >

[BUGS] arrays broken in 7.1.3? also, support for embedded tables present?

2002-01-09 Thread Robby Dermody
Hi, I'm running 7.1.3 on a redhat linux system, using the rpm packages from the postgresql site: [nova@naomi scripts]$ rpm -qa|grep postgresql postgresql-libs-7.1.3-0.onms.5 postgresql-server-7.1.3-0.onms.5 postgresql-python-7.1.3-0.onms.5 postgresql-7.1.3-0.onms.5 postgresql-contrib-7.1.3-0.onms

Re: [BUGS] 'natural join' and 'join ... using' giving different

2002-01-09 Thread Stephan Szabo
On Wed, 9 Jan 2002, Bruno Wolff III wrote: > I am seeing different results when using 'natural join' as opposed to > 'join ... using' on what I think the equivalent columns should be. > The 'join ... using' version of the query gives the expected answer. > I have tried this on 7.1.3 (built local

Re: [BUGS] 'natural join' and 'join ... using' giving different results

2002-01-09 Thread Tom Lane
Natural join of those two tables will be on (gameid, touched) not only (gameid). You should've noticed that the natural join was only emitting one copy of the "touched" column ... regards, tom lane ---(end of broadcast)---

Re: [BUGS] case-sensitivity inconsistency in quoted column aliases

2002-01-09 Thread Stephan Szabo
On Wed, 9 Jan 2002, Mike Hoolehan wrote: > Please enter a FULL description of your problem: > > if a quoted column alias in a FROM clause sub-select contains upper-case > chars, then that column cannot be later referenced without using quotes > > P

Re: [BUGS] case-sensitivity inconsistency in quoted column aliases in FROM subselects

2002-01-09 Thread Tom Lane
Mike Hoolehan <[EMAIL PROTECTED]> writes: > SELECT * FROM (SELECT col1 as "Foo" from table1) AS innerQuery > WHERE Foo = 'whatever'; > results in > "ERROR: Attribute 'foo' not found" > no matter what capitalization is used for "Foo" in the where clause > (i.e. foo='whatever', FOO='whatever',

Re: [BUGS] case-sensitivity inconsistency in quoted column aliases

2002-01-09 Thread Peter Eisentraut
Mike Hoolehan writes: > if a quoted column alias in a FROM clause sub-select contains upper-case > chars, then that column cannot be later referenced without using quotes This is expected behaviour. See also http://www.de.postgresql.org/users-lounge/docs/7.1/postgres/sql-syntax.html#SQL-SYNTAX

[BUGS] 'natural join' and 'join ... using' giving different results

2002-01-09 Thread Bruno Wolff III
I am seeing different results when using 'natural join' as opposed to 'join ... using' on what I think the equivalent columns should be. The 'join ... using' version of the query gives the expected answer. I have tried this on 7.1.3 (built locally) and 7.2b4 with a patch to how foreign keys are ch

[BUGS] case-sensitivity inconsistency in quoted column aliases in FROM subselects

2002-01-09 Thread Mike Hoolehan
POSTGRESQL BUG REPORT TEMPLATE Your name : Mike Hoolehan Your email address : [EMAIL PROTECTED]

Re: [BUGS] ecpg "aborts" on structure reference

2002-01-09 Thread Tim Nelson
This is NOT fixed in 2.9. It seems to have something to with parsing the structure definitions, here is a more complete case: exec sql includesqlca; exec sql type APC_LAYO_FLD is struct { long apcl_id; char apclf_sect_flg[2]; }; exec sql type APC_LAYOUT is struct { long apcl_id;

[BUGS] Bug #558: JDBC InputStream.read() from oid returns incorrect values for negative bytes and really messes up -1

2002-01-09 Thread pgsql-bugs
James Lynn ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description JDBC InputStream.read() from oid returns incorrect values for negative bytes and really messes up -1 Long Description Using: PostgresSQL 7.1, jdbc7.1-1.2.jar After in

[BUGS] ecpg "aborts" on structure reference

2002-01-09 Thread Tim Nelson
Think I've identified a bug in ecpg 2.8 (RH7.1) the following code aborts (crashes) ecpg: exec sql include sqlca; exec sql include ../../libhome/dbincs/apc_layout.h; exec sql include ../../libhome/dbincs/apc_layo_fld.h; static int get_org_name() { exec sql begin declare section