pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ruben Fagundo <rfagundo@npv.com>
To: pgsql-admin@postgreSQL.org
Cc: Art Spaziano <spaziano@usa.net>
Cc: dlsilvia@mediaone.net
Subject: Fwd: Re: fun with postgresql
Date: Fri, 28 Jan 2000 11:38:49 -0500
Message-ID: <4.1.20000128113419.00abd970@24.128.29.181> (raw)

Does anyone have any idea why this happened ?

I'm having trouble with postgresql.  My script tries to do this:

my $sql = "insert into people (firstName, lastName, Email)
values ($V{'firstname'}, $V{'lastname'}, $V{'MAILTO'})";

but it gets the error:  DBD::Pg::st execute failed: ERROR: Attribute don not
found .  'don' is the firstName value that I'm trying to insert.  Even in
psql I get similar weirdness:

postgres=> select firstName, lastName, Email from people \g
ERROR:  attribute 'firstname' not found
postgres=> select firstName from people \g
ERROR:  attribute 'firstname' not found
postgres=> select Email from people \g
ERROR:  attribute 'email' not found

But 'select * from people' works.

What am I missing?  Is there a case-sensitivity issue?  I'm using the case
for the field names that I see with a '\d people'

There are some strange things happening.  In the past, I also updated a table, but didn't see the changes until the postgres was restarted.  It seems like some things were coming from a cache that had not gotten refreshed.  Anyone see any of these weird things before ?


Ruben
==================================
Ruben Fagundo
T:617/244-6136
F:603/452-3220




view thread (4+ messages)  latest in thread

Message-ID: <4.1.20000128113419.00abd970@24.128.29.181>
Permalink:  ../4.1.20000128113419.00abd970@24.128.29.181/
Also on:    postgresql.org/message-id/4.1.20000128113419.00abd970@24.128.29.181

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rfagundo@npv.com, spaziano@usa.net, dlsilvia@mediaone.net
  Subject: Re: Fwd: Re: fun with postgresql
  In-Reply-To: <4.1.20000128113419.00abd970@24.128.29.181>
  References: <4.1.20000128113419.00abd970@24.128.29.181>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox