X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema.pm;h=61a43863f66849c6bd437cf9b263d6736d9c93b0;hb=6642a36f35c3292da6aa651370e7e4d8e75a1c4a;hp=9ae6632613b415145d382427683db518d8586757;hpb=a1f6d93c43f6af8af104ae6659d3b42a3472fd28;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema.pm b/t/lib/DBICTest/Schema.pm index 9ae6632..61a4386 100644 --- a/t/lib/DBICTest/Schema.pm +++ b/t/lib/DBICTest/Schema.pm @@ -144,6 +144,17 @@ sub connection { ; }; + # DBD::Firebird and DBD::InterBase could very well talk to the same RDBMS + # make an educated guesstimate based on the DSN + # (worst case scenario we are wrong and the scripts have to wait on each + # other even without actually being able to interfere among themselves) + if ( + ($locktype||'') eq 'InterBase' + and + $_[0] =~ /firebird/i + ) { + $locktype = 'Firebird'; + } # Never hold more than one lock. This solves the "lock in order" issues # unrelated tests may have