Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024983Openbravo ERPA. Platformpublic2013-10-21 12:402014-05-22 06:24
daniOpenbravo 
AugustoMauch 
highmajoralways
newopen 
3013.04
3.0MP18.3 
 
Google Chrome
Core
No
0024983: Aliases in computed columns.
A 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".
- 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".
After 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.
No tags attached.
? ConsultaSQLgen (875) 2013-10-21 12:41
https://issues.openbravo.com/file_download.php?file_id=6453&type=bug
? consultaParseada (7,110) 2013-10-21 12:41
https://issues.openbravo.com/file_download.php?file_id=6454&type=bug
Issue History
2013-10-21 12:40daniOpenbravoNew Issue
2013-10-21 12:40daniOpenbravoAssigned To => AugustoMauch
2013-10-21 12:40daniOpenbravoWeb browser => Google Chrome
2013-10-21 12:40daniOpenbravoModules => Core
2013-10-21 12:40daniOpenbravoTriggers an Emergency Pack => No
2013-10-21 12:41daniOpenbravoFile Added: ConsultaSQLgen
2013-10-21 12:41daniOpenbravoFile Added: consultaParseada
2014-05-04 16:03PracticsIssue Monitored: Practics
2014-05-22 06:24eintelauIssue Monitored: eintelau

There are no notes attached to this issue.