Openbravo Issue Tracking System - Modules |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0047868 | Modules | Remittance | public | 2021-10-18 09:47 | 2021-10-21 09:54 |
|
| Reporter | fernando_merino | |
| Assigned To | fernando_merino | |
| Priority | normal | Severity | major | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | | |
| Merge Request Status | approved |
| Regression date | 2021-10-15 |
| Regression introduced by commit | |
| Regression level | Automated tests |
| Review Assigned To | |
| Support ticket | |
| OBNetwork customer | No |
| Regression introduced in release | |
|
| Summary | 0047868: Character mismatch in sql query in PopulateBankInstructions_data.xsql |
| Description | Column FIN_PAYMENT.description type was changed from VARCHAR to NVARCHAR in issue 47765(see below related issues). This is producing a character mismatch error in this sql query '...CASE WHEN COALESCE(substr(p.description, length(p.description)),'') = chr(10)...'. |
| Steps To Reproduce | 1. Execute the query from the method 'selectRemittanceLines' in org.openbravo.module.remittance.modulescript/PopulateBankInstructions_data.xsql. The execution will fail. |
| Proposed Solution | |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | caused by | defect | 0047765 | | closed | fernando_merino | Openbravo ERP | Problem posting multiple invoices in the same collection |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2021-10-18 09:47 | fernando_merino | New Issue | |
| 2021-10-18 09:47 | fernando_merino | Assigned To | => fernando_merino |
| 2021-10-18 09:47 | fernando_merino | OBNetwork customer | => No |
| 2021-10-18 10:09 | fernando_merino | Regression date | => 2021-10-15 |
| 2021-10-18 10:09 | fernando_merino | Regression level | => Automated tests |
| 2021-10-18 10:09 | fernando_merino | Summary | PENDING => Character mismatch in sql query in PopulateBankInstructions_data.xsql |
| 2021-10-18 10:09 | fernando_merino | Description Updated | bug_revision_view_page.php?rev_id=23192#r23192 |
| 2021-10-18 10:09 | fernando_merino | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=23194#r23194 |
| 2021-10-18 13:31 | hgbot | Merge Request Status | => open |
| 2021-10-18 13:31 | hgbot | Note Added: 0132409 | |
| 2021-10-18 14:45 | aferraz | Relationship added | caused by 0047765 |
| 2021-10-18 14:47 | hgbot | Merge Request Status | open => approved |
| 2021-10-18 14:48 | hgbot | Resolution | open => fixed |
| 2021-10-18 14:48 | hgbot | Status | new => closed |
| 2021-10-18 14:48 | hgbot | Note Added: 0132415 | |
| 2021-10-18 14:48 | hgbot | Note Added: 0132416 | |
| 2021-10-18 14:49 | aferraz | Status | closed => new |
| 2021-10-18 14:49 | aferraz | Resolution | fixed => open |
| 2021-10-18 14:53 | hgbot | Note Added: 0132417 | |
| 2021-10-21 09:51 | fernando_merino | Note Added: 0132517 | |
| 2021-10-21 09:54 | aferraz | Status | new => scheduled |
| 2021-10-21 09:54 | aferraz | Status | scheduled => resolved |
| 2021-10-21 09:54 | aferraz | Resolution | open => fixed |
| 2021-10-21 09:54 | aferraz | Status | resolved => closed |
|
Notes |
|
|
(0132409)
|
|
hgbot
|
|
2021-10-18 13:31
|
|
|
|
|
(0132415)
|
|
hgbot
|
|
2021-10-18 14:48
|
|
|
|
|
(0132416)
|
|
hgbot
|
|
2021-10-18 14:48
|
|
|
|
|
(0132417)
|
|
hgbot
|
|
2021-10-18 14:53
|
|
|
|
|
(0132517)
|
|
fernando_merino
|
|
2021-10-21 09:51
|
|
In order to prevent future issues, the following commands have been used to look for similar problems:
--> grep -ril 'COALESCE(.*.description.*)' | xargs grep -ril 'fin_payment[^_A-Z]'
(To look for files which include the fin_payment table and make use of the
description column inside a COALESCE function)
--> grep -ril --include=\*.xml 'fin_payment[^_A-Z]' | xargs grep -ril 'function \|trigger ' | xargs grep -ril 'varchar' | xargs grep -ril 'description'
(To look for .xml files which include fin_payment table and could either
save fin_payment.description value into a varchar variable or update
fin_payment.description value using a varchar variable) |
|