Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0030737 | Openbravo ERP | A. Platform | public | 2015-09-02 12:27 | 2015-09-14 17:57 |
|
Reporter | shuehner | |
Assigned To | alostale | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0PR15Q4 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | inigosanchez |
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 | 0030737: New ad_table_navigation_mod_trg is broken for updates (It has wrong coalesce mixing varchar & numeric data) |
Description | That trigger is broken and does not work for updates because if has a wrong sql code doing the following:
COALESCE(NEW.SeqNo , '.') != COALESCE(OLD.SeqNo , '.') OR
Which is mixing numeric column seqno with a varchar '.' which is wrong.
Probably cause copy'n'paste of other text column and then no testing done for the update case of that trigger
ERROR: invalid input syntax for type numeric: "."
Where: PL/pgSQL function ad_table_navigation_mod_trg() line 66 at IF |
Steps To Reproduce | Preparation:
On a postgres db
Search for a table having a ad_table_navigation entry or create such an entry for any table.
then without any module in development try to edit in UI the ad_table_navigation entry and check the error message appearing.
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-09-02 12:27 | shuehner | New Issue | |
2015-09-02 12:27 | shuehner | Assigned To | => platform |
2015-09-02 12:27 | shuehner | OBNetwork customer | => No |
2015-09-02 12:27 | shuehner | Modules | => Core |
2015-09-02 12:27 | shuehner | Triggers an Emergency Pack | => No |
2015-09-02 12:27 | shuehner | Severity | minor => major |
2015-09-02 12:29 | shuehner | Note Added: 0080017 | |
2015-09-02 12:29 | shuehner | Target Version | => 3.0PR15Q4 |
2015-09-07 13:05 | alostale | Status | new => scheduled |
2015-09-07 13:05 | alostale | Assigned To | platform => alostale |
2015-09-07 13:14 | alostale | Review Assigned To | => inigosanchez |
2015-09-07 13:15 | hgbot | Checkin | |
2015-09-07 13:15 | hgbot | Note Added: 0080189 | |
2015-09-07 13:15 | hgbot | Status | scheduled => resolved |
2015-09-07 13:15 | hgbot | Resolution | open => fixed |
2015-09-07 13:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a98b85433a15ff3d76ea47fef0dd7992e75a0e3f [^] |
2015-09-08 19:28 | hudsonbot | Checkin | |
2015-09-08 19:28 | hudsonbot | Note Added: 0080249 | |
2015-09-14 17:57 | inigosanchez | Note Added: 0080385 | |
2015-09-14 17:57 | inigosanchez | Status | resolved => closed |
Notes |
|
|
Adding target version Q4 as that is new project merged for Q4 so the error in the project has not been published yet and should be fixed before publishing. |
|
|
(0080189)
|
hgbot
|
2015-09-07 13:15
|
|
Repository: erp/devel/pi
Changeset: a98b85433a15ff3d76ea47fef0dd7992e75a0e3f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Sep 07 13:13:46 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a98b85433a15ff3d76ea47fef0dd7992e75a0e3f [^]
fixed bug 30737: broken ad_table_navigation_mod_trg for updates
ad_table_navigation_mod_trg trigger had a coalesce that was mxing types
(varchar and numeric) which is not allowed raising an error in when this
code was exectued.
Fixed by completely removing this colasce as it was in seqNo column which
is mandatory.
---
M src-db/database/model/triggers/AD_TABLE_NAVIGATION_MOD_TRG.xml
---
|
|
|
|
|
|
|
Code reviewed and verified in pi@d45d2896cfa6
Tested in PostgreSQL 9.1.14 & Oracle 11.2 |
|