Symbol problem

Started by Bogdan Paduraruabout 25 years ago2 messagesdocs
Jump to latest
#1Bogdan Paduraru
bpaduraru@petar.ro

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.

Bogdan

#2Alfred Perlstein
bright@wintelcom.net
In reply to: Bogdan Paduraru (#1)
Re: Symbol problem

* Bogdan Paduraru <bpaduraru@petar.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@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."