From: John Napiorkowski Date: Thu, 9 Jul 2009 21:23:37 +0000 (+0000) Subject: set correct number of tests, changed the debuggin output to not warn on DDL, minor... X-Git-Tag: v0.08109~76^2~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cda869a8afcef42813042caedb83d0a80b145ca0;p=dbsrgits%2FDBIx-Class.git set correct number of tests, changed the debuggin output to not warn on DDL, minor change to a test resultclass so we can deploy to mysql properly --- diff --git a/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm b/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm index 7d43c85..405d157 100644 --- a/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm +++ b/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm @@ -31,11 +31,10 @@ Add C to debugging output. around '_query_start' => sub { my ($method, $self, $sql, @bind) = @_; my $dsn = $self->_dbi_connect_info->[0]; - my($op, $rest) = ($sql=~m/^(\w+) (.+)$/); - + my($op, $rest) = (($sql=~m/^(\w+)(.+)$/),'NOP', 'NO SQL'); my $storage_type = $self->can('active') ? 'REPLICANT' : 'MASTER'; - $self->$method("$op [DSN_$storage_type=$dsn] $rest", @bind); + $self->$method("$op [DSN_$storage_type=$dsn]$rest", @bind); }; =head1 ALSO SEE diff --git a/t/93storage_replication.t b/t/93storage_replication.t index 1c0c7df..b63d5dd 100644 --- a/t/93storage_replication.t +++ b/t/93storage_replication.t @@ -12,7 +12,7 @@ BEGIN { eval "use DBIx::Class::Storage::DBI::Replicated; use Test::Moose"; plan $@ ? ( skip_all => "Deps not installed: $@" ) - : ( tests => 125 ); + : ( tests => 126 ); } use_ok 'DBIx::Class::Storage::DBI::Replicated::Pool'; diff --git a/t/lib/DBICTest/Schema/Bookmark.pm b/t/lib/DBICTest/Schema/Bookmark.pm index c468936..3e87e54 100644 --- a/t/lib/DBICTest/Schema/Bookmark.pm +++ b/t/lib/DBICTest/Schema/Bookmark.pm @@ -15,6 +15,7 @@ __PACKAGE__->add_columns( }, 'link' => { data_type => 'integer', + is_nullable => 1, }, );