Skip site navigation (1) Skip section navigation (2)

SVN Commit by dpage: r4225 - trunk/pgadmin3/src/schema

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4225 - trunk/pgadmin3/src/schema
Date: 2005-05-20 09:29:33
Message-ID: 200505200929.j4K9TXr1023738@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Author: dpage
Date: 2005-05-20 10:29:33 +0100 (Fri, 20 May 2005)
New Revision: 4225

Modified:
   trunk/pgadmin3/src/schema/pgDomain.cpp
Log:
Use pg_get_constraintdef(pg_constraint.oid) to get domain contraint details.

Modified: trunk/pgadmin3/src/schema/pgDomain.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgDomain.cpp	2005-05-20 08:45:58 UTC (rev 4224)
+++ trunk/pgadmin3/src/schema/pgDomain.cpp	2005-05-20 09:29:33 UTC (rev 4225)
@@ -70,7 +70,7 @@
         if (GetConnection()->BackendMinimumVersion(7, 4))
         {
             pgSet *set=ExecuteSet(
-                wxT("SELECT conname, consrc FROM pg_constraint WHERE contypid=") + GetOidStr());
+                wxT("SELECT conname, pg_get_constraintdef(oid) AS consrc FROM pg_constraint WHERE contypid=") + GetOidStr());
             if (set)
             {
                 while (!set->Eof())


pgadmin-hackers by date

Next:From: Devrim GUNDUZDate: 2005-05-20 10:18:31
Subject: Re: 1.2.2 testing
Previous:From: Dave PageDate: 2005-05-20 08:49:46
Subject: 1.2.2 testing

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group