"Raphael Bauduin" <rblists@gmail.com> writes:
> EXECUTE 'UPDATE tbl SET '
> || quote_ident(colname)
> || ' = '
> || quote_literal(newvalue)
> || ' WHERE key = '
> || quote_literal(keyvalue);
> It works fine, except when I want to include a boolean value: the cast
> of newvalue from boolean to text causes problem.
What problem? 'true' and 'false' are accepted as input for boolean
AFAICS.
regards, tom lane