diff Lib/IMPL/SQL/Schema/Constraint/Index.pm @ 165:76515373dac0

Added Class::Template, Rewritten SQL::Schema 'use parent' directive instead of 'use base'
author wizard
date Sat, 23 Apr 2011 23:06:48 +0400
parents 16ada169ca75
children 6148f89bb7bf
line wrap: on
line diff
--- a/Lib/IMPL/SQL/Schema/Constraint/Index.pm	Mon Mar 28 01:36:24 2011 +0400
+++ b/Lib/IMPL/SQL/Schema/Constraint/Index.pm	Sat Apr 23 23:06:48 2011 +0400
@@ -1,6 +1,6 @@
 package IMPL::SQL::Schema::Constraint::Index;
 use strict;
-use base qw(IMPL::SQL::Schema::Constraint);
+use parent qw(IMPL::SQL::Schema::Constraint);
 
 __PACKAGE__->PassThroughArgs;
 
@@ -8,7 +8,7 @@
     my $this = shift;
     
     my %colnames;
-    not grep { $colnames{$_}++ } @{$this->Columns} or die new Exception('Each column in the index can occur only once');
+    not grep { $colnames{$_}++ } @{$this->columns} or die new Exception('Each column in the index can occur only once');
 }
 
 1;