[Bast-commits] r7016 - in
DBIx-Class/0.08/branches/new_replication_transaction_fixup:
lib/DBIx/Class/Storage/DBI/Replicated t t/lib/DBICTest/Schema
jnapiorkowski at dev.catalyst.perl.org
jnapiorkowski at dev.catalyst.perl.org
Thu Jul 9 21:23:37 GMT 2009
Author: jnapiorkowski
Date: 2009-07-09 21:23:37 +0000 (Thu, 09 Jul 2009)
New Revision: 7016
Modified:
DBIx-Class/0.08/branches/new_replication_transaction_fixup/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm
DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/93storage_replication.t
DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/lib/DBICTest/Schema/Bookmark.pm
Log:
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
Modified: DBIx-Class/0.08/branches/new_replication_transaction_fixup/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm
===================================================================
--- DBIx-Class/0.08/branches/new_replication_transaction_fixup/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm 2009-07-09 20:26:47 UTC (rev 7015)
+++ DBIx-Class/0.08/branches/new_replication_transaction_fixup/lib/DBIx/Class/Storage/DBI/Replicated/WithDSN.pm 2009-07-09 21:23:37 UTC (rev 7016)
@@ -31,11 +31,10 @@
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
Modified: DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/93storage_replication.t
===================================================================
--- DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/93storage_replication.t 2009-07-09 20:26:47 UTC (rev 7015)
+++ DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/93storage_replication.t 2009-07-09 21:23:37 UTC (rev 7016)
@@ -12,7 +12,7 @@
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';
Modified: DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/lib/DBICTest/Schema/Bookmark.pm
===================================================================
--- DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/lib/DBICTest/Schema/Bookmark.pm 2009-07-09 20:26:47 UTC (rev 7015)
+++ DBIx-Class/0.08/branches/new_replication_transaction_fixup/t/lib/DBICTest/Schema/Bookmark.pm 2009-07-09 21:23:37 UTC (rev 7016)
@@ -15,6 +15,7 @@
},
'link' => {
data_type => 'integer',
+ is_nullable => 1,
},
);
More information about the Bast-commits
mailing list