Re: [gnome-db] GdaSqlBuilder and MAX statement

Vivien Malerba <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
2009/9/30 Vivien Malerba <[email protected]>:
> 2009/9/30 Johannes Schmid <[email protected]>:
>> Hi!
>>
>> I converted some of the glom SQL statements to GdaSqlBuilder which
>> worked quite well. But now I ran into a problem. How can I create a
>> query which includes the MAX statement with GdaSqlBuilder, like this
>> one:
>>
>> "SELECT MAX(table.field) FROM  table"
>
> It seems I forgot about functions at all in the GdaSqlBuiler API, so
> it looks like you can't at the moment build such a statement. I'll
> correct this ASAP, sorry for the inconvenience.

This is now in the master branch, see
http://git.gnome.org/cgit/libgda/diff/samples/SqlBuilder/example.c?id=d0f88fbbe6e358b8e3cb141a65f771bb93198b75

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.