Re: Error in PostgreSQL query with psycopg

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "John D(dot) Burger" <john(at)mitre(dot)org>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error in PostgreSQL query with psycopg
Date: 2006-08-01 09:14:09
Message-ID: 20060801091409.GB30427@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 31, 2006 at 09:47:40PM -0400, John D. Burger wrote:
> >never, never, never try quoting on your own! You can only fail. The
> >only choice is to fail now or later.
>
> Nonetheless, in case it's useful, here's a barebones wrapper I call on
> everything:

It'll work fine on single byte encodings (ascii and latin*) and for
well-formed utf8. If somebody can supply malformed utf8 you may have a
problem. It will definitly break for some eastern encodings.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Mair 2006-08-01 09:20:39 Re: Triggers in Postgres
Previous Message Martijn van Oosterhout 2006-08-01 09:05:48 Re: Corrupted DB? could not open file pg_clog/####