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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024983
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformmajoralways2013-10-21 12:402014-05-22 06:24
ReporterdaniOpenbravoView Statuspublic 
Assigned ToAugustoMauch 
PriorityhighResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.6
OS Version13.04Database version8.04Ant version1.7
Product Version3.0MP18.3SCM revision 
Review Assigned To
Web browserGoogle Chrome
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0024983: Aliases in computed columns.

DescriptionA computed column was created in order to calculate some custom operations in a window. When computed column is created, we must fill "sql logic" field in. The problem is that some sql queries that necessary have the union of one or more subqueries which have an alias, are translated by a process with character "." that brings an error when executing the query in the application: "Could not execute query".
Steps To Reproduce- Create a computed column.
- Fill in "sql logic" field with a sql statement that contains alias in subqueries. (Example query attached).
- After compiling, open window that contains the field of the computed column with the query.
- An error is shown: "Could not execute query".
Proposed SolutionAfter investigating, we realized that parsed sql statement takes alias from subqueries and denotes them like "name_.alias" (in my example: project0_.alias) and the database does not recognize it as a permitted alias.
I attach an example query and parsed query.
You can reproduce sql query in "Pi". In parsed query there are some customized alias that we have not deleted because it does not matter.
TagsNo tags attached.
Attached Files? file icon ConsultaSQLgen [^] (875 bytes) 2013-10-21 12:41 [Show Content]
? file icon consultaParseada [^] (7,110 bytes) 2013-10-21 12:41 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-10-21 12:40 daniOpenbravo New Issue
2013-10-21 12:40 daniOpenbravo Assigned To => AugustoMauch
2013-10-21 12:40 daniOpenbravo Web browser => Google Chrome
2013-10-21 12:40 daniOpenbravo Modules => Core
2013-10-21 12:40 daniOpenbravo Triggers an Emergency Pack => No
2013-10-21 12:41 daniOpenbravo File Added: ConsultaSQLgen
2013-10-21 12:41 daniOpenbravo File Added: consultaParseada
2014-05-04 16:03 Practics Issue Monitored: Practics
2014-05-22 06:24 eintelau Issue Monitored: eintelau


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker