pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Symbol problem
2+ messages / 2 participants
[nested] [flat]

* Symbol problem
@ 2001-01-26 21:18  Bogdan Paduraru <bpaduraru@petar.ro>
  0 siblings, 1 reply; 2+ messages in thread

From: Bogdan Paduraru @ 2001-01-26 21:18 UTC (permalink / raw)
  To: pgsql-admin@postgresql.org

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Symbol problem
@ 2001-01-27 09:44  Alfred Perlstein <bright@wintelcom.net>
  parent: Bogdan Paduraru <bpaduraru@petar.ro>
  0 siblings, 0 replies; 2+ messages in thread

From: Alfred Perlstein @ 2001-01-27 09:44 UTC (permalink / raw)
  To: Bogdan Paduraru <bpaduraru@petar.ro>; +Cc: pgsql-admin@postgresql.org

* 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."



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-01-27 09:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-26 21:18 Symbol problem Bogdan Paduraru <bpaduraru@petar.ro>
2001-01-27 09:44 ` Alfred Perlstein <bright@wintelcom.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox