Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: FW: Re: Part 1 of several - Converting a varchar to an interval


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: aklaver(at)comcast(dot)net (Adrian Klaver)
  • Cc: pgsql-sql(at)postgresql(dot)org
  • Subject: Re: FW: Re: Part 1 of several - Converting a varchar to an interval
  • Date: Wed, 26 Mar 2008 14:14:35 -0400
  • Message-id: <906.1206555275@sss.pgh.pa.us> <text/plain>

aklaver(at)comcast(dot)net (Adrian Klaver) writes:
> Select 134987 * interval '1 msec';
> ERROR:  invalid input syntax for type interval: "1 msec"

> SELECT version();
>                                             version
> ------------------------------------------------------------------------------------------------
>  PostgreSQL 8.2.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

8.2.3 is your problem --- this is fixed in 8.2.5 and up:
http://archives.postgresql.org/pgsql-committers/2007-05/msg00345.php

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group