Re: Patch: database version check

From: "Dave Page" <dpage(at)pgadmin(dot)org>
To: "Quan Zongliang" <quanzongliang(at)gmail(dot)com>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Patch: database version check
Date: 2009-01-13 14:54:22
Message-ID: 937d27e10901130654k322f0469l35f79324843e29e7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Tue, Jan 13, 2009 at 9:25 AM, Quan Zongliang <quanzongliang(at)gmail(dot)com> wrote:
> Hi, Dave
>
> very simple patch:
>
> pgAdmin3.h
> +const short SERVER_MAX_VERSION = 0x0805;//Exclusive
>
> pgServer.cpp
>
> + if (conn->BackendMinimumVersion(SERVER_MAX_VERSION >> 8, SERVER_MAX_VERSION & 0x00FF))
> + wxMessageBox(_("Connected to newer database using old version pgAdmin, some function could not run properly.\nUpgrade is recommended."));
> +

Without the whole patch it's somewhat tricky to apply :-p

I've manually hacked up something roughly equivalent and committed it.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Hiroshi Saito 2009-01-13 16:51:46 Dictionary selection of a FTS dialog is not visible.
Previous Message svn 2009-01-13 14:52:51 SVN Commit by dpage: r7549 - in trunk/pgadmin3: . pgadmin/include pgadmin/schema