package SQL::Translator::Schema;
# ----------------------------------------------------------------------
-# $Id: Schema.pm,v 1.13 2004-02-09 23:04:26 kycl4rk Exp $
+# $Id: Schema.pm,v 1.14 2004-03-23 21:12:22 grommit Exp $
# ----------------------------------------------------------------------
# Copyright (C) 2002-4 SQLFairy Authors
#
use base 'Class::Base';
use vars qw[ $VERSION $TABLE_ORDER $VIEW_ORDER $TRIGGER_ORDER $PROC_ORDER ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.13 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.14 $ =~ /(\d+)\.(\d+)/;
# ----------------------------------------------------------------------
sub init {
}
$table->order( ++$TABLE_ORDER );
- my $table_name = $table->name or return $self->error('No table name');
+ # We know we have a name as the Table->new above errors if none given.
+ my $table_name = $table->name;
if ( defined $self->{'tables'}{ $table_name } ) {
return $self->error(qq[Can't create table: "$table_name" exists]);