Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0040701 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| backport | [Openbravo ERP] Z. Others | minor | have not tried | 2019-04-04 13:38 | 2019-05-03 11:58 | |||
| Reporter | alostale | View Status | public | |||||
| Assigned To | nonofrancisco | |||||||
| Priority | normal | Resolution | open | Fixed in Version | ||||
| Status | closed | Fix in branch | Fixed in SCM revision | |||||
| Projection | none | ETA | none | Target Version | 3.0PR18Q4.4 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | vmromanos | |||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0040701: use bind-parameters in FactLine | |||||||
| Description | FactLine.getDescription method is generating a sql setting parameters by String concatenation, replace tokens by bind parameters. | |||||||
| Steps To Reproduce | - | |||||||
| Proposed Solution | If query can be executed in Dal transaction can be done as: strSql = strSql.replaceAll("@RecordId@", ":recordId").replaceAll("@Line@", ":lineId"); description.append(OBDal.getInstance().getSession() .createNativeQuery(strSql) .setParameter("lineId", localStrLine) .setParameter("recordId", strRecord_ID) .uniqueResult()); | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
||||||||
|
||||||||
Notes |
|
|
(0111470) vmromanos (viewer) 2019-05-03 11:58 |
There is no need to backport to 18Q4 since 19Q1.1 is going to be promoted to CS very soon |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2019-04-29 13:34 | nonofrancisco | Type | defect => backport |
| 2019-04-29 13:34 | nonofrancisco | Target Version | => 3.0PR18Q4.4 |
| 2019-05-03 11:58 | vmromanos | Review Assigned To | => vmromanos |
| 2019-05-03 11:58 | vmromanos | Note Added: 0111470 | |
| 2019-05-03 11:58 | vmromanos | Status | scheduled => closed |
| Copyright © 2000 - 2009 MantisBT Group |