Re: Problema con ODBC

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Desarrollo Escuintla <desarrollo(dot)escuintla(at)gmail(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Problema con ODBC
Date: 2010-05-05 04:30:07
Message-ID: u2i3073cc9b1005042130o2c63c669g3b9ccf90fa9afef6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

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)

--
Jaime Casanova www.2ndQuadrant.com
Soporte y capacitación de PostgreSQL

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Desarrollo Escuintla 2010-05-05 04:49:02 Re: Problema con ODBC
Previous Message Desarrollo Escuintla 2010-05-05 04:19:13 Re: Problema con ODBC