pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alexandre :: aldeia digital <alepaes@aldeiadigital.com.br>
To: pgsql-odbc@postgresql.org
Subject: Re: Datetime and pgtypes.c (thanks)
Date: Tue, 3 Dec 2002 14:14:18 -0200 (BRST)
Message-ID: <3517.200.225.214.1.1038932058.squirrel@webmail.ad2.com.br> (raw)

Hi Tom,

Very, very thanks, Tom!
Functions perfectly!  :)

My scripts is auto-genarate by a case tool and the
scripts change constantly...

Alexandre


> "alexandre :: aldeia digital" <alepaes@aldeiadigital.com.br> writes:
>> I have a lot of CREATE scripts using ´datetime´
>> correctly in PG <= 7.2.3...PG convert automaticaly
>> to ´timestamp with time zone´.
>> But I can´t change the ´datetime´ in these scripts and
>> PG 7.3 remove this type.
>
> If you can't afford the time to fix your scripts, you could use a
> DOMAIN as a form of type alias:
>
> regression=# create domain datetime timestamp with time zone;
> CREATE DOMAIN
> regression=# create table fooey (f1 datetime);
> CREATE TABLE
> regression=# select datetime('now');
>            datetime
> -------------------------------
>  2002-12-03 09:44:46.458992-05
> (1 row)
>
> There might be some cases where this doesn't help, but I think it will
> work for most of the common uses.
>
> 			regards, tom lane






Message-ID: <3517.200.225.214.1.1038932058.squirrel@webmail.ad2.com.br>
Permalink:  ../3517.200.225.214.1.1038932058.squirrel@webmail.ad2.com.br/
Also on:    postgresql.org/message-id/3517.200.225.214.1.1038932058.squirrel@webmail.ad2.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-odbc@postgresql.org
  Cc: alepaes@aldeiadigital.com.br
  Subject: Re: Datetime and pgtypes.c (thanks)
  In-Reply-To: <3517.200.225.214.1.1038932058.squirrel@webmail.ad2.com.br>
  References: <3517.200.225.214.1.1038932058.squirrel@webmail.ad2.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