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

client side syntax error position (v3)

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: client side syntax error position (v3)
Date: 2004-03-12 08:51:44
Message-ID: Pine.LNX.4.58.0403120938490.12205@sablons.cri.ensmp.fr (view raw or flat)
Thread:
Lists: pgsql-patches
Dear patchers,

New submission... after suggestions by Tom and others, the current result
looks like the following:

psql> CREATE foo;
ERROR:  syntax error at or near "foo" at character 8
LINE 1: CREATE foo;
               ^
psql>

There may still be issues about some mb encodings, especially with
localised error messages.

I think that the only consequence would be that the cursor may be placed
wrongly. Although it would be a bug, it is not a very big issue. I think
that the current patch may be considered for integration, and fixes for
some encodings can be added later if needed.

Also, any suggestion for improvement on this issue is obviously welcome,
but I need to be told the "how"...

Have a nice day,

-- 
Fabien Coelho - coelho(at)cri(dot)ensmp(dot)fr

Attachment: client_side_syntax_error_position.patch
Description: text/plain (22.3 KB)

Responses

pgsql-patches by date

Next:From: Fabien COELHODate: 2004-03-12 09:41:11
Subject: Re: [HACKERS] notice about costly ri checks (3)
Previous:From: Korea PostgreSQL Users' GroupDate: 2004-03-12 08:25:33
Subject: Re: initdb problen

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group