Re: [gnome-db] GdaSqlSelectTarget



On 25 February 2010 12:23, Piotr Pokora <piotrek pokora gmail com> wrote:
> Hi!
>
> I am using Libgda 4.0.7 and GdaSql structures directly to build
> statement. Is there any support to generate unique and safe table alias
> for GdaSqlSelectTarget? Setting table_name and expression is not an

You can set GdaSqlSelectTarget::as with the string you want and the
SQL will be generated with "FROM ... AS ...".

About the uniqueness of that string, nothing is being done by Libgda,
but simply using "t%d" where %d is the order of the GdaSqlSelectTarget
in the GdaSqlSelectFrom::targets list should be Ok.

Vivien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]