From: Jess Robinson Date: Wed, 7 Jun 2006 16:43:41 +0000 (+0000) Subject: Typo fixing X-Git-Tag: v0.11008~426 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4faaaac623abfddf02dca4d188ef8544dded37a1;p=dbsrgits%2FSQL-Translator.git Typo fixing --- diff --git a/lib/SQL/Translator/Schema.pm b/lib/SQL/Translator/Schema.pm index 0c44bd8..d102834 100644 --- a/lib/SQL/Translator/Schema.pm +++ b/lib/SQL/Translator/Schema.pm @@ -3,7 +3,7 @@ package SQL::Translator::Schema; # vim: sw=4: ts=4: # ---------------------------------------------------------------------- -# $Id: Schema.pm,v 1.25 2006-05-13 01:21:21 kycl4rk Exp $ +# $Id: Schema.pm,v 1.26 2006-06-07 16:43:41 schiffbruechige Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2002-4 SQLFairy Authors # @@ -60,7 +60,7 @@ use SQL::Translator::Utils 'parse_list_arg'; use base 'SQL::Translator::Schema::Object'; use vars qw[ $VERSION $TABLE_ORDER $VIEW_ORDER $TRIGGER_ORDER $PROC_ORDER ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.25 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.26 $ =~ /(\d+)\.(\d+)/; __PACKAGE__->_attributes(qw/name database translator/); @@ -324,8 +324,8 @@ not be created. } $trigger->order( ++$TRIGGER_ORDER ); - my $trigger_name = $trigger->name or return $self->error('No trigger name'); + my $trigger_name = $trigger->name or return $self->error('No trigger name'); if ( defined $self->{'triggers'}{$trigger_name} ) { return $self->error(qq[Can't create trigger: "$trigger_name" exists]); } diff --git a/lib/SQL/Translator/Schema/Object.pm b/lib/SQL/Translator/Schema/Object.pm index 820236c..0907301 100644 --- a/lib/SQL/Translator/Schema/Object.pm +++ b/lib/SQL/Translator/Schema/Object.pm @@ -1,7 +1,7 @@ package SQL::Translator::Schema::Object; # ---------------------------------------------------------------------- -# $Id: Object.pm,v 1.7 2005-08-10 16:34:47 duality72 Exp $ +# $Id: Object.pm,v 1.8 2006-06-07 16:43:41 schiffbruechige Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2002-4 SQLFairy Authors # @@ -43,12 +43,12 @@ use Class::MakeMethods::Utility::Ref qw( ref_compare ); use vars qw[ $VERSION ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.8 $ =~ /(\d+)\.(\d+)/; =head1 Construction -Derived classes should decalare their attributes using the C<_attributes> +Derived classes should declare their attributes using the C<_attributes> method. They can then inherit the C method from here which will call accessors of the same name for any values given in the hash passed to C. Note that you will have to impliment the accessors your self and we expect perl