Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035509 | Openbravo ERP | A. Platform | public | 2017-03-14 13:12 | 2017-03-17 10:40 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | alostale |
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 | 0035509: OBQuery is not working for queries without an alias and a select clause |
Description | OBQuery is not working for queries without an alias and a select clause. |
Steps To Reproduce | 1) Apply the attached patch, it contains two new tests: testOBQueryWithoutAlias and testOBQueryWithAlias. Both of them launch exactly the same query, but the second one includes an alias for the main entity of the query.
2) Run the tests. Notice that testOBQueryWithoutAlias fails. It is failing because an space is missing before the from clause:
Exception when creating query select descriptionfrom Currency where (iSOCode = :isoCode) and organization.id in ('0', 'E443A31992CB4635AFCAEABE7183CE85', 'B843C30461EA4501935CB1D125C9C25A', 'BAE22373FEBE4CCCA24517E23F0C8A48', 'DC206C91AA6A4897B44DA897936E0EC3', '19404EAD144C49A0AF37D54377CF452D', '2E60544D37534C0B89E765FE29BC0B43', '7BABA5FF80494CAFA54DEBD22EC46F01') and client.id in ('23C59575B9CF467C9620760EB255B389', '0') and active='Y'
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | test.diff (2,145) 2017-03-14 13:12 https://issues.openbravo.com/file_download.php?file_id=10564&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2017-03-14 13:12 | caristu | New Issue | |
2017-03-14 13:12 | caristu | Assigned To | => platform |
2017-03-14 13:12 | caristu | OBNetwork customer | => No |
2017-03-14 13:12 | caristu | Modules | => Core |
2017-03-14 13:12 | caristu | Triggers an Emergency Pack | => No |
2017-03-14 13:12 | caristu | Assigned To | platform => caristu |
2017-03-14 13:12 | caristu | Status | new => scheduled |
2017-03-14 13:12 | caristu | File Added: test.diff | |
2017-03-14 13:14 | caristu | Summary | OBQuery is not working for queries without an alias => OBQuery is not working for queries without an alias and a select clause |
2017-03-14 13:14 | caristu | Description Updated | bug_revision_view_page.php?rev_id=14789#r14789 |
2017-03-14 13:16 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=14791#r14791 |
2017-03-14 16:56 | hgbot | Checkin | |
2017-03-14 16:56 | hgbot | Note Added: 0095001 | |
2017-03-14 16:56 | hgbot | Status | scheduled => resolved |
2017-03-14 16:56 | hgbot | Resolution | open => fixed |
2017-03-14 16:56 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/84ddadc11e413380f06b43baf784bb7e0b361180 [^] |
2017-03-14 16:57 | caristu | Review Assigned To | => alostale |
2017-03-15 20:22 | hudsonbot | Checkin | |
2017-03-15 20:22 | hudsonbot | Note Added: 0095299 | |
2017-03-17 10:40 | alostale | Note Added: 0095360 | |
2017-03-17 10:40 | alostale | Status | resolved => closed |
2017-03-17 10:40 | alostale | Fixed in Version | => 3.0PR17Q2 |