Re: CAST SQL pane - Mailing list pgadmin-support

From Dave Page
Subject Re: CAST SQL pane
Date
Msg-id CA+OCxozkLQVjk8_BOw8UZ6_SkRW1isW9HCD2WGEp8z8TShss6g@mail.gmail.com
Whole thread Raw
In response to CAST SQL pane  (Ódor Balázs Péter <balazs@obiserver.hu>)
List pgadmin-support
On Sat, May 25, 2013 at 11:06 AM, Ódor Balázs Péter <balazs@obiserver.hu> wrote:
> Hi,
>
> Im using pgAdmin 1.16.1 on Windows 7 64bit, connected to an PostgreSQL
> 9.2.4.
>
> Im navigate in Object browser to database -> "Casts" ->
> "text->http.user_agent", and the "SQL pane" is:
> -- Cast: "text->http.user_agent"
>
> -- DROP CAST (text AS http.http.user_agent)
>
> CREATE CAST (text AS http.http.user_agent)
>   WITH FUNCTION http.text_user_agent(text);
>
> Errors:
> 1. The full name of my custom type is: http.user_agent
> 2. missing final ";" in "DROP CAST" command.
>
> So, the correct SQL pane's value is:
> -- Cast: "text->http.user_agent"
>
> -- DROP CAST (text AS http.user_agent);
>
> CREATE CAST (text AS http.user_agent)
>   WITH FUNCTION http.text_user_agent(text);

Thanks - I've committed a patch that fixes both of these issues.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgadmin-support by date:

Previous
From: Ódor Balázs Péter
Date:
Subject: CAST SQL pane
Next
From: Milan Perovic
Date:
Subject: SQL window in 1.16.1