Escaping strings?

From: Timothy Reaves <treaves(at)silverfields(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org <pgsql-jdbc(at)postgresql(dot)org>
Subject: Escaping strings?
Date: 2002-11-04 02:06:27
Message-ID: 20021103210627.4936fd10.treaves@silverfields.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

What is the proper way to insure a text string (i.e. one read from a
JTextField.getText()) is propery escaped? I assumed the JDBC driver would
do this automatically, but it does not. An ' character will cause the
JDBC driver to throw an exception.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Thomas O'Dowd 2002-11-04 02:14:00 Re: Escaping strings?
Previous Message Timothy Reaves 2002-11-04 02:04:06 Re: [Solved] A result was returned by the statement, when none was expected.