Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0040317 | Openbravo ERP | A. Platform | public | 2019-03-05 13:55 | 2024-12-09 13:52 | |||||||
Reporter | alostale | |||||||||||
Assigned To | alostale | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0PR19Q2 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
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 | 0040317: can't restore pg dump of a retail instance | |||||||||||
Description | Retail instances cannot be recovered with pg_restore. | |||||||||||
Steps To Reproduce | 0. Update a retail instance to a version including POS changest 8afc424cc7a4 [1] 1. pg_dump it 2. restore it with pg_restore ERROR: pg_restore: [archiver (db)] could not execute query: ERROR: function dateformat() does not exist LINE 1: SELECT to_timestamp(to_char($1, dateFormat()), dateFormat()) ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. QUERY: SELECT to_timestamp(to_char($1, dateFormat()), dateFormat()) CONTEXT: PL/pgSQL function public.trunc(timestamp without time zone) line 3 at RETURN Command was: CREATE INDEX obpos_app_cashup_date_idx ON public.obpos_app_cashup USING btree (public.trunc(cashupdate)); [1] hg log -r 8afc424cc7a4 -p changeset: 11001:8afc424cc7a4 user: Eduardo Argal Guibert <eduardo.argal@openbravo.com> date: Wed Feb 27 18:43:19 2019 +0100 summary: Adds new index to OBPOS_APP_CASHUP for CASHUPDATE diff -r ed15e5ff9b53 -r 8afc424cc7a4 src-db/database/model/tables/OBPOS_APP_CASHUP.xml --- a/src-db/database/model/tables/OBPOS_APP_CASHUP.xml Wed Feb 27 13:18:39 2019 +0100 +++ b/src-db/database/model/tables/OBPOS_APP_CASHUP.xml Wed Feb 27 18:43:19 2019 +0100 @@ -112,6 +112,9 @@ <foreign-key foreignTable="OBPOS_APP_CASHUP" name="OBPOS_APPCASH_PARENT"> <reference local="OBPOS_PARENT_CASHUP_ID" foreign="OBPOS_APP_CASHUP_ID"/> </foreign-key> + <index name="OBPOS_APP_CASHUP_DATE_IDX" unique="false"> + <index-column name="functionBasedColumn" functionExpression="TRUNC(CASHUPDATE)"/> + </index> <index name="OBPOS_APP_CASHUP_PARENT_IDX" unique="false"> <index-column name="OBPOS_PARENT_CASHUP_ID"/> <whereClause><![CDATA[OBPOS_PARENT_CASHUP_ID IS NOT NULL]]></whereClause> | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-03-05 13:55 | alostale | New Issue | ||||||||||
2019-03-05 13:55 | alostale | Assigned To | => platform | |||||||||
2019-03-05 13:55 | alostale | OBNetwork customer | => No | |||||||||
2019-03-05 13:55 | alostale | Modules | => Core | |||||||||
2019-03-05 13:55 | alostale | Triggers an Emergency Pack | => No | |||||||||
2019-03-05 13:55 | alostale | Relationship added | related to 0038179 | |||||||||
2019-03-05 13:55 | alostale | Assigned To | platform => alostale | |||||||||
2019-03-05 13:59 | alostale | Review Assigned To | => caristu | |||||||||
2019-03-05 14:01 | hgbot | Checkin | ||||||||||
2019-03-05 14:01 | hgbot | Note Added: 0110231 | ||||||||||
2019-03-05 14:01 | hgbot | Status | new => resolved | |||||||||
2019-03-05 14:01 | hgbot | Resolution | open => fixed | |||||||||
2019-03-05 14:01 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/8b497714669eedb6476c9d6abedbc33a4012518e [^] | |||||||||
2019-03-08 13:36 | caristu | Note Added: 0110322 | ||||||||||
2019-03-08 13:36 | caristu | Status | resolved => closed | |||||||||
2019-03-08 13:36 | caristu | Fixed in Version | => 3.0PR19Q2 | |||||||||
2019-03-28 14:56 | hudsonbot | Checkin | ||||||||||
2019-03-28 14:56 | hudsonbot | Note Added: 0110847 | ||||||||||
2024-12-09 13:52 | AugustoMauch | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=28883#r28883 | |||||||||
2024-12-09 13:53 | AugustoMauch | Note Edited: 0110322 | bug_revision_view_page.php?bugnote_id=0110322#r28885 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|