Maybe a Bug, maybe bad SQL

From: Daryl Herzmann <akrherz(at)iastate(dot)edu>
To: pgsql-sql(at)postgresql(dot)org
Subject: Maybe a Bug, maybe bad SQL
Date: 2001-03-19 19:46:10
Message-ID: Pine.LNX.4.21.0103191341560.13102-100000@iitappc1.iitap.iastate.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

HI,
I am running postgres version 7.0 and I do this...

akrherz=# create table test (day date);
CREATE
akrherz=# insert into test values('2000_04_02');
INSERT 13166281 1
akrherz=# insert into test values('2000_04_01');
INSERT 13166282 1
akrherz=# insert into test values('2000_04_03');
INSERT 13166283 1
akrherz=# select day, date_part('day', day) AS day from test;
day | day
------------+-----
2000-04-02 | 1
2000-04-01 | 1
2000-04-03 | 3
(3 rows)

Is this fixed in a newer version? Am I doing something wrong?

TIA,
Daryl Herzmann

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message clayton cottingham 2001-03-19 22:13:33 Re: Postgres & XML
Previous Message Stephan Szabo 2001-03-19 19:34:15 Re: serial type question