pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Leandro Rodrigo Saad Cruz <leandro@ibnetwork.com.br>
To: pgsql-admin@postgresql.org
Subject: Bad date external representation Was :[problems using pg_dump and datestyle format]
Date: Thu, 13 Sep 2001 11:03:57 -0300
Message-ID: <3BA0BCCD.74040F2F@ibnetwork.com.br> (raw)
References: <3B9FA677.E5808687@ibnetwork.com.br>

Hi, I searched the mailing list and I am stuck.

INFO :

> monitorar=# SHOW DateStyle ;
> NOTICE:  DateStyle is SQL with European conventions
> SHOW VARIABLE
>
> monitorar=# SELECT oid from reservas where data_comp = '20/08/2001';
>  oid   
> --------
> 254376
> (1 row)
>
> monitorar=# \d reservas
>                   Table "reservas"
>     Attribute     |         Type          | Modifier 
> -------------------+-----------------------+----------
>  flag              | smallint              | 
>  num_org           | character varying(6)  | 
>  nome_org          | character varying(30) | 
>  tipo_reserva      | character varying(3)  | 
>  num_reserva       | bigint                | not null
>  sequencia         | character varying(4)  | not null
>  cod_material      | character varying(20) | 
>  desc_material     | character varying(30) | 
>  unidade           | character varying(2)  | 
>  quant_total       | integer               | 
>  quant_atendida_ac | integer               | 
>  quant_dia         | integer               | 
>  quant_pendente    | integer               | 
>  data_integracao   | date                  | 
>  data_necessidade  | date                  | 
>  data_separacao    | date                  | 
>  data_nf           | date                  | 
>  data_envio        | date                  | 
>  data_entrega      | date                  | 
>  num_nf            | character varying(10) | 
>  num_conhecimento  | character varying(10) | 
>  nome_trans        | character varying(30) | 
>  data_comp         | date                  | 
> Indices: data_comp_reservas_key,
>          reservas_pkey


PROBLEM :

> monitorar=# SELECT oid from reservas where data_comp < '20/08/2001';
> ERROR:  Bad date external representation '08/20/2001'

-- 
Leandro Rodrigo Saad Cruz
IT - Inter Business Tecnologia e Servicos (IB)

Attachments:

leandro.vcf (text/x-vcard, 186B) download begin:vcard n:Saad Cruz;Leandro x-mozilla-html:FALSE org:Inter Business;IT adr:;;;;;; version:2.1 email;internet:leandro@ibnetwork.com.br x-mozilla-cpt:;0 fn:Leandro Saad Cruz end:vcard

view thread (2+ messages)  latest in thread

Message-ID: <3BA0BCCD.74040F2F@ibnetwork.com.br>
Permalink:  ../3BA0BCCD.74040F2F@ibnetwork.com.br/
Also on:    postgresql.org/message-id/3BA0BCCD.74040F2F@ibnetwork.com.br

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: leandro@ibnetwork.com.br
  Subject: Re: Bad date external representation Was :[problems using pg_dump and datestyle format]
  In-Reply-To: <3BA0BCCD.74040F2F@ibnetwork.com.br>
  References: <3B9FA677.E5808687@ibnetwork.com.br> <3BA0BCCD.74040F2F@ibnetwork.com.br>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox