[Zebralist] date comparison syntax in pqf?

Walter McGinnis walter at katipo.co.nz
Thu May 29 22:52:03 CEST 2008


On May 29, 2008, at 11:27 PM, Mike Taylor wrote:

> Walter McGinnis writes:
>>
>> Things break again if I add time to the query like so:
>>
>>  Z> f @attr 2=5 @attr 1=1012 '2008-05-29 11:31:49'
>> f @attr 2=5 @attr 1=1012 '2008-05-29 11:31:49'
>>                                                 ^
>> Prefix query error: extra token (code 1)
>>
>> If I escape the colons, I still get the same error.
>
> Here I think your problem is simply that you need to use
> double-quotes, not single, to enclose a multi-word token for the PQF
> parser.  So:
> 	Z> f @attr 2=5 @attr 1=1012 "2008-05-29 11:31:49"
>

Thanks Mike.  This did solve that problem.

Cheers,
Walte



More information about the Zebralist mailing list