Skip Menu |

This queue is for tickets about the NoSQL-PL2SQL CPAN distribution.

Report information
The Basics
Id: 87328
Status: new
Priority: 0/
Queue: NoSQL-PL2SQL

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

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



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: NoSQL-PL2SQL-1.21-returnor.patch
diff -bu NoSQL-PL2SQL-1.21-7VYDNx/lib/NoSQL/PL2SQL.pm~ NoSQL-PL2SQL-1.21-7VYDNx/lib/NoSQL/PL2SQL.pm --- NoSQL-PL2SQL-1.21-7VYDNx/lib/NoSQL/PL2SQL.pm~ 2013-04-27 13:37:19.000000000 -0500 +++ NoSQL-PL2SQL-1.21-7VYDNx/lib/NoSQL/PL2SQL.pm 2013-07-25 14:38:24.000806445 -0500 @@ -106,8 +106,8 @@ return sqlcarp( $package, $errors[1], {}, @args, 'Missing or invalid data source.' ) unless eval { $dsn->db } ; - return sqlcarp( $package, $errors[2], {}, @args, - 'Fetch requires an objectid.' ) or return undef + return (sqlcarp( $package, $errors[2], {}, @args, + 'Fetch requires an objectid.' ) || return undef) unless defined $objectid || defined $object ; return sqlcarp( $package, $errors[3], {}, @args, 'SQLObject requires a connected database.'