[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-1088-gc704e52

Alex Vandiver alexmv at bestpractical.com
Tue Dec 28 12:31:05 EST 2010


The branch, 3.9-trunk has been updated
       via  c704e523f9a1ade4d6161515e821093f20d54a20 (commit)
      from  9ab41d269a6c866310cfb6b85912027a915d8374 (commit)

Summary of changes:
 t/fts/indexed_pg.t |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit c704e523f9a1ade4d6161515e821093f20d54a20
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Dec 28 12:30:57 2010 -0500

    Skip fulltext tests on Pg < 8.2, where it was introduced

diff --git a/t/fts/indexed_pg.t b/t/fts/indexed_pg.t
index 355d165..84cbaae 100644
--- a/t/fts/indexed_pg.t
+++ b/t/fts/indexed_pg.t
@@ -5,6 +5,11 @@ use warnings;
 
 use RT::Test tests => undef;
 plan skip_all => 'Not Pg' unless RT->Config->Get('DatabaseType') eq 'Pg';
+
+my ($major, $minor) = $RT::Handle->dbh->get_info(18) =~ /^0*(\d+)\.0*(\d+)/;
+plan skip_all => "Need Pg 8.2 or higher; we have $major.$minor"
+    if "$major.$minor" < 8.2;
+
 plan tests => 11;
 
 RT->Config->Set( FullTextSearch => Enable => 1, Indexed => 1 );

-----------------------------------------------------------------------


More information about the Rt-commit mailing list