Skip Menu |

This queue is for tickets about the HTML-FormHandler-Model-DBIC CPAN distribution.

Report information
The Basics
Id: 129609
Status: new
Priority: 0/
Queue: HTML-FormHandler-Model-DBIC

Owner: Nobody in particular
Requestors: rrwo [...]

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

CC: Robert Rothenberg <Robert.Rothenberg [...]>
Subject: Uniqueness checks should use actual column names, not accessors
Date: Mon, 20 May 2019 09:35:58 +0100
To: bug-HTML-FormHandler-Model-DBIC [...]
From: Robert Rothenberg <rrwo [...]>
Download (untitled) / with headers
text/plain 705b
See and PR in Sometimes a DBIC schema uses an alternative accessor instead of the actual column name, especially when working with legacy databases, e.g. __PACKAGE__->add_columns( "uco" => { accessor => "username", data_type => "text", is_nullable => 0, original => { data_type => "varchar" }, }, ... ); However, search conditions must use the actual column name, not the accessor. So the following /will not/ work: $rs->search( { username => { '!=', $row->username }, ... ); But HFH::Model::DBIIC uses the accessor instead of the actual name

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to