Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #35509 All Revisions ] Back to Issue ]
Summary 0035509: OBQuery is not working for queries without an alias and a select clause
Revision 2017-03-14 13:16 by caristu
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'
 
Revision 2017-03-14 13:14 by caristu
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.
 


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker