On Thursday, January 10, 2013 7:06:31 PM UTC+1, Lukas Eder wrote:

Hello,
>
> An informal way of doing this might look like that:
>
> // This should work with any dialect
> Factory factory = new Factory(dialect);
>
> // Create a local render context and configure it to declare tables (e.g. 
> "ADM_USER" AS "A0")
> RenderContext ctx = factory.renderContext().declareTables(true);
>
> // Check if the declaration of the aliased table starts with the 
> declaration of the unaliased table
> assertTrue(ctx.render(alias).startsWith(ctx.render(user)));
>

Thanks, this solves the issue for me.

But getRecordType() is a nice idea, too.

Regards,

A. Digulla

Reply via email to