From 219a0f4ad2fd867a33a29bcf5fb446af243e00c2 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 24 May 2011 16:53:39 +0000 Subject: [PATCH] add support for compress option table create for DB2 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9671 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index b3cad1933..1faea0cc8 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -485,6 +485,12 @@ sub buildcreatestmt $retv .= " ENGINE=$descr->{engine} "; } } + # allow compression for DB2 + if ($descr->{compress}) { + if ($xcatcfg =~ /^DB2:/) { #for DB2 + $retv .= " compress $descr->{compress} "; + } + } # allow tablespace change for DB2 if ($descr->{tablespace}) { if ($xcatcfg =~ /^DB2:/) { #for DB2