Re: [QUESTIONS] timestamp questions

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart)
Cc: hackers(at)postgresql(dot)org (PostgreSQL-development)
Subject: Re: [QUESTIONS] timestamp questions
Date: 1998-02-04 02:36:11
Message-ID: 199802040236.VAA01828@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> > There are several things I have attempted to do, that my reference
> > book says are possible, that do not seem to function. To wit:
> >
> > wwwlogs=> select * from dates where '1998-01-06 15:59:59' between dt1
> > and dt2;
> > WARN:parser: parse error at or near "dt1"
>
> Oh! None of us even thought of writing an expression like that.
> Currently, the parser requires that only constants follow BETWEEN.
> Bruce, I have a patch which will allow the above expression (column
> names in the expression) but I think we will have trouble allowing full
> expressions there since the AND looks like a boolean expression. I'll go
> ahead and apply my patches soon (tomorrow?) unless you want something
> different...

Go head.

--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-02-04 02:37:51 Re: [HACKERS] Re: [QUESTIONS] MySQL benchmark page\
Previous Message Bruce Momjian 1998-02-04 02:33:42 Re: regression test "strings" failure.