Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0031425 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
design defect | [Openbravo ERP] A. Platform | trivial | have not tried | 2015-11-11 11:02 | 2022-02-01 08:09 | ||||||
Reporter | alostale | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Any | Database | Any | Java version | |||||||
OS Version | Database version | Ant version | |||||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
Web browser | |||||||||||
Modules | Core | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0031425: many boolean columns incorrectly defined in AD and DB | ||||||||||
Description | Boolean columns (reference Y/N) should be defined as: 1. Mandatory: other case when working with DAL a Boolean null object is obtained failing when doing "if (object)" 2. They should have standard DB check for Y/N values | ||||||||||
Steps To Reproduce | For case 1, check with: select t.tablename, c.columnname from ad_column c, ad_table t where c.ad_reference_id = '20' and t.ad_table_id = c.ad_table_id and t.isview ='N' and c.ismandatory ='N' order by 1,2 For case 2, check with: select t.tablename, c.columnname from ad_column c, ad_table t where c.ad_reference_id = '20' and t.ad_table_id = c.ad_table_id and t.isview ='N' and not exists ( select 1 from pg_constraint ct, pg_class pt where pt.relname ilike t.tablename and ct.conrelid = pt.oid and contype ='c' and consrc ilike '%'||c.columnname||'%' and consrc ilike '%''Y''%' and consrc ilike '%''N''%') order by 1,2 | ||||||||||
Proposed Solution | Decide whether we should enforce these two rules, if so, fix existent columns (note will be an API change) and automate test case to prevent it in future. | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2015-11-11 11:02 | alostale | New Issue | |
2015-11-11 11:02 | alostale | Assigned To | => platform |
2015-11-11 11:02 | alostale | Modules | => Core |
2015-11-11 11:02 | alostale | Triggers an Emergency Pack | => No |
2015-11-11 11:02 | alostale | Status | new => acknowledged |
2015-11-11 11:02 | alostale | Relationship added | duplicate of 0017609 |
2022-02-01 08:09 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |