Groups | Search | Server Info | Login | Register


Groups > perl.dbd.pg.changes > #12

[DBD::Pg] Older versions of Postgres cannot do an ALTER TYPE inline.

Newsgroups perl.dbd.pg.changes
Subject [DBD::Pg] Older versions of Postgres cannot do an ALTER TYPE inline.
Date 2015-09-30 23:24 +0000
Message-ID <1443655491-29979-1-git-send-email-dbdpg-commits@bucardo.org> (permalink)
From dbdpg-commits@bucardo.org

Show all headers | View raw


Committed by Greg Sabino Mullane <greg@endpoint.com>

Older versions of Postgres cannot do an ALTER TYPE inline.

---
 t/03dbmethod.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/03dbmethod.t b/t/03dbmethod.t
index ac565ba..6955924 100644
--- a/t/03dbmethod.t
+++ b/t/03dbmethod.t
@@ -681,7 +681,7 @@ SKIP: {
 
         $dbh->do( q{CREATE TYPE dbd_pg_enumerated AS ENUM ('foo', 'bar', 'baz', 'buz')} );
         $dbh->do( q{CREATE TEMP TABLE dbd_pg_enum_test ( is_enum dbd_pg_enumerated NOT NULL )} );
-        if ($pgversion >= 90100) {
+        if ($pgversion >= 90300) {
             $dbh->do( q{ALTER TYPE dbd_pg_enumerated ADD VALUE 'first' BEFORE 'foo'} );
             unshift @enumvalues, 'first';
         }
-- 
1.8.4

Back to perl.dbd.pg.changes | Previous | Next | Find similar


Thread

[DBD::Pg] Older versions of Postgres cannot do an ALTER TYPE inline. dbdpg-commits@bucardo.org - 2015-09-30 23:24 +0000

csiph-web