Reporter searches for actor.org_unit for id AND NULL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Evergreen 2.0.8
OpenSRF 2.0.1
PostgreSQL 9.0.4
Ubuntu 10.0.4
When creating a report to detail cataloguing statistics, if the report is filtered by Bibliographic Record -> Call Number/Volume -> Item :: Circulating Library -> Org_unit the report searches for both the id supplied in the report and id = NULL. It should not be inserting id = NULL.
Create a report with the follwing fields:
Bibliographic Record -> Call Number/Volume -> Item :: Circulating Library -> Short (Policy) Name
Bibliographic Record -> Basic Record Descriptor :: BLvl -> Bib Level Code
Bibliographic Record -> Basic Record Descriptor :: Type -> Item Type
Bibliographic Record -> Basic Record Descriptor :: Type -> Record Creatation Date/Time As a Count transform
Then filter the report with
Bibliographic Record -> Basic Record Descriptor :: Type -> Record Creatation Date/Time As Year + Month transfrom =
Bibliographic Record -> Call Number/Volume -> Item :: Circulating Library -> Organizational Unit Id =
I modified this report to filter on Record Creation Date/TIme Raw Data and put in some garbage, which produced the following SQL
The SQL command attempted was:
SELECT "6b9bd799d746ad
"f19550385b6aa
"f19550385b6aa
COUNT(
FROM biblio.record_entry AS "d94d9ed7d30666
LEFT OUTER JOIN asset.call_number AS "284511cb898214
LEFT OUTER JOIN asset.copy AS "b72e2d9fad2ab7
LEFT OUTER JOIN actor.org_unit AS "6b9bd799d746ad
LEFT OUTER JOIN metabib.
WHERE "d94d9ed7d30666
AND (("6b9bd799d746
GROUP BY 1, 2, 3
ORDER BY "6b9bd799d746ad
In the WHERE clause actor.org_unit is searched for id = NULL OR id = 127
description: | updated |
tags: | added: reporter |
tags: | added: report reports |
Changed in evergreen: | |
status: | New → Incomplete |
Changed in evergreen: | |
status: | Incomplete → Triaged |
From me reading this, my view is that this is likely solved with the nullability selection ability, allowing choice of whether nulls are or are not allowed across the links.