Re: Problema con ODBC y Report Manager fue:(Re: [pgsql-es-ayuda] Problema con ODBC)

From: Desarrollo Escuintla <desarrollo(dot)escuintla(at)gmail(dot)com>
To: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Problema con ODBC y Report Manager fue:(Re: [pgsql-es-ayuda] Problema con ODBC)
Date: 2010-05-06 02:20:31
Message-ID: g2ua6e132361005051920y56d6a9a0p5f3a3f08034937fe@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Gracias !

solucione el problema con la ayuda recibida.

2010/5/4 Jaime Casanova <jaime(at)2ndquadrant(dot)com>

> >
> > On Tue, May 4, 2010 at 10:30 PM, Jaime Casanova <jaime(at)2ndquadrant(dot)com>
> > wrote:
> >>
> >> 2010/5/4 Desarrollo Escuintla <desarrollo(dot)escuintla(at)gmail(dot)com>:
> >> >
> >> >
> >> > select tbl_08.tbl_08_fecha,tbl_10.* from tbl_10
> >> > right join tbl_08
> >> > on
> >> > tbl_08.tbl_08_no=tbl_10.tbl_08_no
> >> > where tbl_08.tbl_08_fecha BETWEEN to_date(:PDE,'DD/MM/YYYY') AND
> >> > to_date(:PA,'DD/MM/YYYY');
> >> >
> >> >
> >> >
> >> > me muestra el siguiente error:
> >> >
> >> > SQL:ERROR: no existe la función to_date(date,unknown);
> >> > Error while executing the query
> >> >
> >>
> >> necesitas un cast: to_date(:PA, 'DD/MM/YYYY'::text)
>
>
> 2010/5/4 Desarrollo Escuintla <desarrollo(dot)escuintla(at)gmail(dot)com>:
> > Probe con lo que me indicas,
> > pero ahora me da el siguiente error:
> >
> > SQL:ERROR: error de sintaxis en o cerca de <<:>>;
> > Error while executing the query
> >
> >
> > aunque esto si funciona desde el pgadmin
> >
>
> ah! el SQL está en Report Manager y este está tratando de parsearlo,
> verdad?
>
> en ese caso hazlo asi: to_date(:PA, cast('DD/MM/YYYY' as text))
>
> --
> Jaime Casanova www.2ndQuadrant.com
> Soporte y capacitación de PostgreSQL
>

--
Saludos

_________________
José de Paz
Escuintla, Guatemala
Tel. (502)-56041676

http://desarrolloescuintla.wordpress.com

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Desarrollo Escuintla 2010-05-06 02:48:28 OT -Usuarios conectados
Previous Message Engineer Alexander Granados 2010-05-05 19:23:00 herramienta grafica para hacer las tablas y luego exportarlas con las relaciones a postgresql