pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Juan Pablo <jp_grassi@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Problems with timestamp.
Date: Thu, 18 Jul 2002 06:40:24 -0700 (PDT)
Message-ID: <20020718134024.6688.qmail@web11306.mail.yahoo.com> (raw)

 Hi.
 I've been using PostgreSQL 7.1.3 for a year without
problems.
 Last week I installed a new server with Red Hat 7.2
and PostgreSQL 7.2.1
 I've copied my database by using "pg_dumpall" from my
old server to the new one.
 But now the following query doesn't work:

SELECT date_part('year', fechaacta) AS "Año de
donación", sexo AS "Sexo", count(*) AS "Cantidad de
donantes" FROM "Capital" WHERE date_part('year',
age(timestamp(fechanacimiento))) BETWEEN 1 AND 100
AND "fecha" BETWEEN '2001/01/01' AND '2002/12/31'
GROUP BY date_part('year', fechaacta), sexo

the answer from server was:

 Warning: PostgreSQL query failed: ERROR: parser:
parse error at or near "fechanacimiento" in
/var/www/html/ActasPcias/consultas.php on line 471

 note: I've taken a care that "fechanacimiento" was a
field of table "Capital".

 Exactly the same query in exactly the same database
works perfectly on my old server

 Can anybody tell me what's going on ?

 Thanks.

 Juan Pablo

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



Message-ID: <20020718134024.6688.qmail@web11306.mail.yahoo.com>
Permalink:  ../20020718134024.6688.qmail@web11306.mail.yahoo.com/
Also on:    postgresql.org/message-id/20020718134024.6688.qmail@web11306.mail.yahoo.com

 · 

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: jp_grassi@yahoo.com
  Subject: Re: Problems with timestamp.
  In-Reply-To: <20020718134024.6688.qmail@web11306.mail.yahoo.com>
  References: <20020718134024.6688.qmail@web11306.mail.yahoo.com>

* 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