On Mon, 2009-01-26 at 13:52 +0100, Vivien Malerba wrote:
>
>
> 2009/1/26 Johannes Schmid <
jhs jsschmid de>
> Hi!
>
> I tried to execute the following query on postgresql:
>
> ALTER GROUP "glom_developers" ADD USER ##name::gchararray
>
> the holder name was defined as "jhs".
>
> The result was the following error:
> Syntax error at »'jhs'«
> LINE 1: ALTER GROUP "glom_developer" ADD USER 'jhs'
>
> The same query works as
> ALTER GROUP "glom_developers" ADD USER "jhs" (note the
> difference
> between ' and ".
>
> Is there anything wrong with the query. Can I specify
> different
> behaviour for the holder?
>
> No, there is no way at the moment. The problem appears because:
> * PostgreSQL does not seem to allow variables in the ALTER GROUP
> statement, so Libgda has to render the variable itself and renders a
> string (gchararray) using single quotes as any SQL string should be
> rendered
Are you saying that we should use ' instead of "" in SQL in Glom? We can