PostgreSQL 7.3.3 a date_sub

Honza Pazdziora adelton na informatics.muni.cz
Středa Říjen 1 16:50:56 CEST 2003


On Wed, Oct 01, 2003 at 04:19:11PM +0200, Peter Mann wrote:
> 
> po prechode z PostgreSQL 7.2.1 na 7.3.3 sa vyskytol problem s sql
> funkciou date_sub, konkretne:
> 
> update blabla set datum=date_sub(datum, '24:00:00') where blablabla ...
> 
> vypise chybu: function date_sub(timestamp without time zone, "unknown")
> does not exist. Unable to identify a function that satisfies the given
> argument types. You may need to add explicit typecasts in
> /cesta/k/suboru.php
> 
> v 7.2.1 to fungovalo, v 7.3.3 to nefunguje ... kde moze byt problem? pri
> prehladavani postgresql.org/docs/ retazec date_sub nenaslo, takisto som
> bol neuspesny aj pri prehladavani techdocs.postgresql.org, ci google

A nemel jste v te 7.2.1 instalaci to date_sub jako uzivatelsky
definovanou funkci? Funkce date_sub je v MySQL, v PostgreSQL se o ni
opravdu nic moc nerika.

-- 
------------------------------------------------------------------------
 Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
 .project: Perl, mod_perl, DBI, Oracle, auth. WWW servers, XML/XSL, ...
		Only self-confident people can be simple.


Další informace o konferenci Test