* Fix Pg diff issue with drop constraint on primary keys
* SQLite support for SET NULL, SET DEFAULT and NO ACTION in FK clauses
* Clean up properly after Parser::DBI::PostgreSQL tests
+* Fix typos in error messages
# ----------------------------------------------------------
# 0.11016 2012-10-09
my $cascade = $args{'cascade'};
if ( !exists $self->_tables->{$table_name} ) {
- return $self->error(qq[Can't drop table: $table_name" doesn't exist]);
+ return $self->error(qq[Can't drop table: "$table_name" doesn't exist]);
}
my $table = delete $self->_tables->{$table_name};
if ( !exists $self->_procedures->{$proc_name} ) {
return $self->error(
- qq[Can't drop procedure: $proc_name" doesn't exist]);
+ qq[Can't drop procedure: "$proc_name" doesn't exist]);
}
my $proc = delete $self->_procedures->{$proc_name};
if ( !exists $self->_triggers->{$trigger_name} ) {
return $self->error(
- qq[Can't drop trigger: $trigger_name" doesn't exist]);
+ qq[Can't drop trigger: "$trigger_name" doesn't exist]);
}
my $trigger = delete $self->_triggers->{$trigger_name};
}
if ( !exists $self->_views->{$view_name} ) {
- return $self->error(qq[Can't drop view: $view_name" doesn't exist]);
+ return $self->error(qq[Can't drop view: "$view_name" doesn't exist]);
}
my $view = delete $self->_views->{$view_name};
my $self = shift;
my $trigger_name = shift or return $self->error('No trigger name');
- return $self->error(qq[Table "$trigger_name" does not exist])
+ return $self->error(qq[Trigger "$trigger_name" does not exist])
unless exists $self->_triggers->{$trigger_name};
return $self->_triggers->{$trigger_name};
}