pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Upgrade 7.2.1 to 7.3.4 datetime Error
3+ messages / 3 participants
[nested] [flat]

* Upgrade 7.2.1 to 7.3.4 datetime Error
@ 2003-10-01 05:54  Eko Pranoto <koprapostgres@telkom.net>
  0 siblings, 2 replies; 3+ messages in thread

From: Eko Pranoto @ 2003-10-01 05:54 UTC (permalink / raw)
  To: pgsql-admin

Hey folks..
I have problem when upgrade from 7.2.1 to 7.3.4
with function I create...

How I can fix it ?

Thank you for any suggestion
EKo Pranoto


--------------Message Recieve----------------------
ERROR:  Function datetime(timestamp with time zone) does not exist
        Unable to identify a function that satisfies the given argument types
        You may need to add explicit typecasts

-----------------FUNCTION------start-------------
CREATE FUNCTION "set_waktu" () 
RETURNS timestamp without time zone AS 'set datestyle to ''european''; 
set datestyle to ''sql'';
select datetime(now()) as result' LANGUAGE 'sql';
---------------FUNCTION--------end-------------





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Upgrade 7.2.1 to 7.3.4 datetime Error
@ 2003-10-01 13:44  scott.marlowe <scott.marlowe@ihs.com>
  parent: Eko Pranoto <koprapostgres@telkom.net>
  1 sibling, 0 replies; 3+ messages in thread

From: scott.marlowe @ 2003-10-01 13:44 UTC (permalink / raw)
  To: koprahome@telkom.net; +Cc: pgsql-admin

On Wed, 1 Oct 2003, Eko Pranoto wrote:

> Hey folks..
> I have problem when upgrade from 7.2.1 to 7.3.4
> with function I create...
> 
> How I can fix it ?

add this to template1 on the 7.3.4 database before importing into it:

create domain datetime as timestamptz;




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Upgrade 7.2.1 to 7.3.4 datetime Error
@ 2003-10-01 14:17  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Eko Pranoto <koprapostgres@telkom.net>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2003-10-01 14:17 UTC (permalink / raw)
  To: koprahome@telkom.net; +Cc: pgsql-admin

Eko Pranoto <koprapostgres@telkom.net> writes:
> select datetime(now()) as result' LANGUAGE 'sql';

"datetime" isn't a standard type name anymore.  Use "timestamp".

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-10-01 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01 05:54 Upgrade 7.2.1 to 7.3.4 datetime Error Eko Pranoto <koprapostgres@telkom.net>
2003-10-01 13:44 ` scott.marlowe <scott.marlowe@ihs.com>
2003-10-01 14:17 ` Tom Lane <tgl@sss.pgh.pa.us>

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