Hi,
This issue is similar but there is no method called
ResultSetMetaData.getTableLabel ().

any solution? or directly edit the source code?

On 7 mayo, 08:46, Thomas Mueller <[email protected]> wrote:
> Hi,
>
> > The method ResultSetMetaData.getTableName () always returns the table
> > and not thealiasof the query.
> > EJ. select * from Tabla as T1 left join Tabla as T2 on T1.id =
> > T2.idparent
>
> > Can I change this behavior?
> > In the consultations that appears twice in the same table can not be
> > distinguished fields one and other.
>
> No, it's not possible to change the behavior. I believe it's the
> correct behavior according to the JDBC spec. Also, none of the
> database I have tested (MySQL, PostgreSQL, Apache Derby, HSQLDB)
> returns the tablealias. Therefore, I don't plan to change it.
>
> This issue is related 
> tohttp://www.h2database.com/html/faq.html#column_names_incorrect
>
> Regards,
> Thomas
>
> --
> You received this message because you are subscribed to the Google Groups "H2 
> Database" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/h2-database?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to