Re: Error when changing column type - Mailing list pgadmin-support

From Andreas Pflug
Subject Re: Error when changing column type
Date
Msg-id 41893423.4000808@pse-consulting.de
Whole thread Raw
In response to Error when changing column type  ("Virgil Frum" <virgil@livius.net>)
List 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



pgadmin-support by date:

Previous
From: "Virgil Frum"
Date:
Subject: Error when changing column type
Next
From: "Virgil Frum"
Date:
Subject: Modifying server address