I have an application that executes a sql with two with's. When I run this sql by pl/sql developer, it works fine, but when I run this sql by my application, using DOA, I get the error: Unimplemented Feature.
It could be a multi-byte character set issue. Can you set TOracleSession.BytesPerCharacter to bcAutoDetect (assuming that this is not already the case) and try again?