Re: rule on view in pgschema

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "frank_lupo" <frank_lupo(at)email(dot)it>
Cc: "pgadmin-hackers" <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: rule on view in pgschema
Date: 2003-04-08 10:16:22
Message-ID: 03AF4E498C591348A42FC93DEA9661B8259F2A@mail.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

> -----Original Message-----
> From: frank_lupo [mailto:frank_lupo(at)email(dot)it]
> Sent: 08 April 2003 10:56
> To: Dave Page
> Cc: pgadmin-hackers
> Subject: Re: [pgadmin-hackers] rule on view in pgschema
>
>
>
>
> In pgschema.pgview is present this routine.
>
> Friend Property Let Name(ByVal vData As String)
> If inIDE Then: On Error GoTo 0: Else: On Error GoTo
> Err_Handler objServer.iLogEvent "Entering " & App.Title &
> ":pgView.Property Let Name(" & vData & ")", etFullDebug Dim
> szSQL As String
>
> szSQL = "ALTER TABLE " & FormattedID & " RENAME TO " &
> QUOTE & vData & QUOTE
> objServer.ExecSQL szSQL, cnDatabase
> szName = vData
> Identifier = vData
>
> Exit Property
> Err_Handler: objServer.iLogError Err.Number, Err.Description
> End Property
>
>
> This is a error?

No, ALTER TABLE will rename anything in pg_class. It works with
sequences as well.

Regards, Dave

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2003-04-08 10:18:31 Re: rule on view in pgschema
Previous Message frank_lupo 2003-04-08 10:08:20 Re: rule on view in pgschema