PostgreSQL, chybove hlaseni
nopetr na tiscali.cz
nopetr na tiscali.cz
Středa Červenec 2 07:36:19 CEST 2003
Mam databazi v PostgreSQL , dotazuji se pres PHP (4.0.5) skripty. Puvodni
verzi PostgreSQL 7.1.1 jsem updatoval na 7.3. Nyni se mi u nekterych polozek
objevilo hlaseni: Warning: PostgreSQL query failed: ERROR: Unable to identify
an operator '-' for types 'timestamp with time zone' and 'integer' You will
have to retype this query using an explicit cast in /usr/... on line...
Priklad na odkazovany radek: pg_exec ($iConn, "UPDATE news SET protected
= false, password = null WHERE date <=now ()-" . DAYS_NEWSCURRENT );
Muze mi nekdo poradit jak chybu odstranit?
Dekuji, Petr
____________________________________________________________
Vyhraj s TISCALI notebook, zájezdy, kosmetiku, fotoaparáty a nepřeberné
množství dalších cen!
Hraj na http://surfujavyhraj.tiscali.cz
Další informace o konferenci Linux