Opened 13 years ago
Last modified 12 years ago
#892 new defect
Dataviews with Missing Table Names in AT
| Reported by: | Martin Reisinger | Owned by: | |
|---|---|---|---|
| Priority: | medium | Milestone: | Post 1.0 |
| Component: | Admin Tool | Version: | 1.9.6.11 |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
Why do some fields in the AT not have a table reference? (note this DV is on my local host, but I just recently updated my server stuff. I assume it is the same as what is on the npgsweb or dev?)
from Kurt:
Marty,
That’s not just a problem on your system. I see the same thing on npgsdev and npgsdb. It looks like it’s just a glitch in the Admin Tool. The actual data looks fine in the sys_dataview_field table. It knows what table that field is. I think the admin tool is getting confused by the inventory_id_string field which essentially is the inventory_id showing up a second time.
This query reassures me everything is fine even though it doesn’t look right in the AT.
SELECT sdf.field_name AS DVfield, st.table_name, stf.field_name
FROM sys_dataview_field sdf
INNER join sys_dataview sd ON sdf.sys_dataview_id = sd.sys_dataview_id
LEFT JOIN sys_table_field stf ON sdf.sys_table_field_id = stf.sys_table_field_id
LEFT JOIN sys_table st ON st.sys_table_id = stf.sys_table_id
WHERE sd.dataview_name = 'get_inventory'
ORDER BY sdf.sort_order
Attachments (2)
Change History (3)
by , 13 years ago
| Attachment: | at dv missing table name 2014-05-06_14-37-59.png added |
|---|
by , 13 years ago
| Attachment: | at dv missing table name2 2014-05-06_14-37-59.png added |
|---|

The second example with the missing table name on the created date comes from a /* type comment on the previous line. Comments of this form seem to confuse the AT in displaying the table/field name information.
SQL like this cause the second field not to display info correctly in the Fields tab of the dataview: