Re: Parser: parse error - please help...

From: Richard Poole <richard(at)ruthie(dot)org>
To: PostgreSQL general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Parser: parse error - please help...
Date: 2003-12-23 08:46:04
Message-ID: 20031223084604.GA8404@guests.deus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Dec 22, 2003 at 04:24:52PM -0700, Andrew Ayers wrote:

> DEFAULT, DEFAULT, 'Test', 'Tester', 'http:\\www.eldocomp.com\', DEFAULT,
> false, DEFAULT, '09/11/2002', DEFAULT, DEFAULT, '09/11/2002', DEFAULT,

The \ at the end off the URL in the first line here is escaping the '
after it, so the string which should consist of just the URL is being
taken to include everything up to the next ' , the one at the beginning
of the date. Then the date itself appears to fall outside quotes, hence
Pg tries to parse it, hence parse error at 09.

The \ in the URL should be / - this goes for all \ in all URL.

Richard

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2003-12-23 08:50:12 Re: Normalization and regexp
Previous Message Pavel Stehule 2003-12-23 08:03:04 Solved: questions about tsearch2 (for czech language)