te esta devolviendo un array y lo esta comparando con un integer.
te esta diciendo que no existe un operador capaz de comparar estos tipos.
proba castear (Select grolist from pg_group where
groname='aprovisionamiento')::integer


2008/10/29 Calabaza <[EMAIL PROTECTED]>:
> Amigos tengo el siguiente problema:
>
> ¿Cómo listo los elementos de una tabla cuyos indices se guardan en
> otra como elementos de un array?
>
> Aquí el código:
>
> Select grolist from pg_group where groname='aprovisionamiento';
>
> Devuelve:
> "{111,112}"
>
> Y al hacer:
> Select
> *
> from
> pg_user
> where
> usesysid = any (Select grolist from pg_group where 
> groname='aprovisionamiento')
> order by a.usesysid desc;
>
> Me da el siguiente error:
>
> ERROR:  operator does not exist: integer = integer[]
> HINT:  No operator matches the given name and argument type(s). You
> may need to add explicit type casts.
>
> ********** Error **********
>
> ERROR: operator does not exist: integer = integer[]
> Estado SQL:42883
> Sugerencias:No operator matches the given name and argument type(s).
> You may need to add explicit type casts.
>
> Yo utilizo:
> "PostgreSQL 7.4.8 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.0.2
> 20050816 (prerelease) (Debian 4.0.1-5)"
>
> Gracias de antemano y disculpen la molestia.-
> --
> §~^Calabaza^~§ from Villa Elisa, Paraguay
> ----------------
> A hendu hína: Franz Schubert - Fritz Wunderlich - Fischer - Dieskau -
> Ihr Bild  (La imagen de ella)
> http://foxytunes.com/artist/franz+schubert+-+fritz+wunderlich+-+fischer+-+dieskau/track/ihr+bild++(la+imagen+de+ella)
> --
> TIP 4: No hagas 'kill -9' a postmaster
>



-- 
      Emanuel Calvo Franco
    Syscope Postgresql DBA
          BaPUG Member
--
TIP 6: ¿Has buscado en los archivos de nuestra lista de correo?
               http://archives.postgresql.org/pgsql-es-ayuda

Responder a