Re: datetime to timestamp

From: "alexandre :: aldeia digital" <alepaes(at)aldeiadigital(dot)com(dot)br>
To: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: datetime to timestamp
Date: 2003-01-07 11:11:30
Message-ID: 1287.192.168.1.101.1041937890.squirrel@webmail.aldeiadigital.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

The driver does not convert a statment like:

CREATE TABLE FOO (DTAAA datetime)
to
CREATE TABLE FOO (DTAAA timestamp)

Postgre 7.3 remove the datetime type. Use:

CREATE DOMAIN datetime AS timestamp

in your database (and in template1) to solve this.

Regards,

Alexandre

> Sorry for the
>
> "William S. Bear" wrote:
>>
>> I'm trying to export an access database to postgres 7.3,
>> but get an error that datatype datetime does not exist.
>> Noticed in the docs that 7.3 will not longer support
>> datetime data type. Will the ODBC driver be converting
>> all datetime datatypes to timestamp in future versions?
>
> Which version of psqlodbc driver are you using ?
> The current driver converts datetime type to timestamp.
>
> regards,
> Hiroshi Inoue
> http://w2422.nsk.ne.jp/~inoue/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Jeff Eckermann 2003-01-07 15:13:33 Re: Replacing Oracle 8i
Previous Message Hiroshi Inoue 2003-01-07 02:30:38 Re: datetime to timestamp