Oracle incorrect SELECT FROM decoration with table alias when using nested selects#5794
Conversation
|
@samsonasik #4070 does not resolve the issue where more than 1 nested sub-select is concerned. |
|
I think #5392 might fix your issue with nested sub-selects, which is in the latest version of ZF2 (2.3.1), could you try that? |
|
@ralphschindler Have just updated to 2.3.1 and still seeing the same output. |
|
I have a fix for this, I"ll turn this issue into a PR and have someone merge it today. |
|
Actually- my tests show your example above works in 2.3.1, but does not work for the method |
- Fixed AbstractSql's processSubSelect to use decorators when calling getSqlString()
|
@ralphschindler Yes, my testing this morning was using getSqlString(). I probably should have mentioned that! |
Using the Oracle adapter, creating a SELECT query with more than 1 nested sub-select, like this:
results in the following SQL:
The expected SQL for Oracle is:
Oracle only allows the use of AS for aliasing columns - not tables.
This bug is similar to #4069.