package SQL::Translator::Schema::Field;
# ----------------------------------------------------------------------
-# $Id: Field.pm,v 1.7 2003-06-06 22:35:44 kycl4rk Exp $
+# $Id: Field.pm,v 1.8 2003-06-09 02:10:59 kycl4rk Exp $
# ----------------------------------------------------------------------
# Copyright (C) 2003 Ken Y. Clark <kclark@cpan.org>
#
=cut
my $self = shift;
- push @{ $self->{'comments'} }, @_ if @_;
+
+ for my $arg ( @_ ) {
+ $arg = $arg->[0] if ref $arg;
+ push @{ $self->{'comments'} }, $arg;
+ }
return wantarray
? @{ $self->{'comments'} || [] }
}
return wantarray
- ? @{ $self->{'size'} }
+ ? @{ $self->{'size'} || [0] }
: join( ',', @{ $self->{'size'} || [0] } )
;
}