cannot alter column data type to "date"

From: "Noel Doydora" <uwq291(at)lycos(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: cannot alter column data type to "date"
Date: 2005-12-08 07:12:07
Message-ID: 20051208071207.43903CA07E@ws7-4.us4.outblaze.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Below is the message I receive when I try to alter the data type of
a column to "date". I had to drop the column and add it again just
so I can set its data type to "date". How do I change a column's
data type to "date" without dropping and then creating it again?

Hoping for a kind response. Thank you.

SQL error:

ERROR: column "date_signed" cannot be cast to type "date"

In statement:
ALTER TABLE "canvass" ALTER COLUMN "date_signed" TYPE date

--
_______________________________________________

Search for businesses by name, location, or phone number. -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-12-08 07:21:45 Re: cannot alter column data type to "date"
Previous Message Tom Lane 2005-12-08 04:11:19 Re: Error from trigger