Re: Error when changing column type

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Virgil Frum <virgil(at)livius(dot)net>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: Error when changing column type
Date: 2004-11-03 19:40:19
Message-ID: 41893423.4000808@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Virgil Frum wrote:
> If column type is int4 and try to change type to int2, SQL look like this:
>
> UPDATE pg_attribute
> SET atttypid=, atttypmod=-1
> WHERE attrelid=21459::oid AND attnum=3;
>
> and syntax error occurs. I know that int2 is not in Data type drop down list
> but error should be avoided in some way.

Well don't do that :-)
Seriously: fixed and committed to cvs.

Regards,
Andreas

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Virgil Frum 2004-11-04 14:39:25 Modifying server address
Previous Message Virgil Frum 2004-11-03 18:32:33 Error when changing column type