Re: [gnome-db] GdaSqlSelectTarget

Vivien Malerba <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
On 25 February 2010 12:23, Piotr Pokora <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.