Skip Menu |

This queue is for tickets about the Database-Migrator CPAN distribution.

Report information
The Basics
Id: 87205
Status: resolved
Priority: 0/
Queue: Database-Migrator

People
Owner: Nobody in particular
Requestors: rurban [...] x-ray.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.09



Subject: [PATCH] wrong return precedence
returns binds stronger than or, so the expressions after or are ignored. See https://rt.perl.org/rt3/Public/Bug/Display.html?id=59802
Subject: Database-Migrator-0.08-returnor.patch
diff -bu Database-Migrator-0.08-wUvoWF/lib/Database/Migrator/Core.pm~ Database-Migrator-0.08-wUvoWF/lib/Database/Migrator/Core.pm --- Database-Migrator-0.08-wUvoWF/lib/Database/Migrator/Core.pm~ 2013-07-18 10:31:42.000000000 -0600 +++ Database-Migrator-0.08-wUvoWF/lib/Database/Migrator/Core.pm 2013-07-22 22:41:58.764598843 -0600 @@ -264,7 +264,7 @@ $a_num ||= 0; $b_num ||= 0; - return $a_num <=> $b_num or $a_alpha cmp $b_alpha; + return ($a_num <=> $b_num or $a_alpha cmp $b_alpha); }