Received: from web11303.mail.yahoo.com (web11303.mail.yahoo.com [216.136.131.206]) by postgresql.org (Postfix) with SMTP id C51C04758DD for ; Wed, 17 Jul 2002 11:49:41 -0400 (EDT) Message-ID: <20020717154943.8016.qmail@web11303.mail.yahoo.com> Received: from [200.43.36.35] by web11303.mail.yahoo.com via HTTP; Wed, 17 Jul 2002 08:49:43 PDT Date: Wed, 17 Jul 2002 08:49:43 -0700 (PDT) From: Juan Pablo Subject: problems with timestamp data type To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200207/254 X-Sequence-Number: 4941 Hi. I have been using PostgreSQL v 7.1.3 without problems for a year. I installed the latest version (7.2.1) a week ago and I have had some problems with a particular query: ///***** QUERY *****/// 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 ///***** end QUERY ***//// I obtain the following answer from server: "Warning: PostgreSQL query failed: ERROR: parser: parse error at or near "fechanacimiento" in /var/www/html/ActasPcias/consultas.php on line 471" Note: "fechanacimiento" is a field of the table "Capital". Exactly the same query has been working fine for a year with PostgreSQL v 7.1.3 in exactly the same database. more over, the database was created in my new red hat 7.3 server by using "pg_dumpall" from my old server (red hat 7.2). 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