Re: Symbol problem

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: Bogdan Paduraru <bpaduraru(at)petar(dot)ro>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Symbol problem
Date: 2001-01-27 09:44:25
Message-ID: 20010127014425.L26076@fw.wintelcom.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-docs

* Bogdan Paduraru <bpaduraru(at)petar(dot)ro> [010127 01:27] wrote:
> Hello ,
> I made a tool with Java servlets and Postgresql. This tool inputs html text
> into a db. My problem is that everytime I input text that contains '
> (apostrophe)
> I get an SQL exception.
> This Postgresql can't see by itself what is the difference ?
> I don't want to check every character, this is stupid. I'd rather change
> the RDBMS.

Most every interface into postgresql has a 'quoting' mechanism that
will escape these characters for you. Check the docs.

--
-Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
"I have the heart of a child; I keep it in a jar on my desk."

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dirk Heinrichs 2001-01-27 10:11:49 Re: Some thoughts on replication
Previous Message R D 2001-01-27 08:33:49 Re: postgres limitation

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2001-01-27 18:11:02 Re: postgres limitation
Previous Message R D 2001-01-27 08:33:49 Re: postgres limitation