From: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
---|---|
To: | PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | client side syntax error localisation for psql (v1) |
Date: | 2004-03-11 15:35:38 |
Message-ID: | Pine.LNX.4.58.0403111634530.12205@sablons.cri.ensmp.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Dear patchers,
Please find attached my first attempt at providing a localisation
information on the client side for syntax errors in "psql". Basically, one
function is added which takes care of the burden. I put a lot of
comments in the function to try make it clear what is going on.
It validates for me against current cvs head.
I've also added new regression tests in "errors.sql".
Although I have taken great and painful care to deal with multi-byte
encodings, I'm not sure how I can validate that, as I don't have some
japanese terminal to play with.
Have a nice day,
--
Fabien Coelho - coelho(at)cri(dot)ensmp(dot)fr
Attachment | Content-Type | Size |
---|---|---|
client_side_syntax_error_localisation.patch | text/plain | 18.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2004-03-11 16:38:43 | defer statement logging until after parse |
Previous Message | Fabien COELHO | 2004-03-11 08:15:08 | Re: [HACKERS] notice about costly ri checks (3) |