Re: Escape characters, JDBC and ColdFusion MX - Mailing list pgsql-jdbc

From Jochem van Dieten
Subject Re: Escape characters, JDBC and ColdFusion MX
Date
Msg-id 3D4A8D0E.6050601@oli.tudelft.nl
Whole thread Raw
In response to Escape characters, JDBC and ColdFusion MX  (Jochem van Dieten <jochemd@oli.tudelft.nl>)
List pgsql-jdbc
Jochem van Dieten wrote:
>
> I have a problem with inserting strings into a PostgreSQL database using
> ColdFusion MX. Somehow the backslash is not identified as an escape
> character.

Macromedia Tech Support came with a solution for this one. The solution
is to use the ColdFusion MX <cfqueryparam> tag that uses the
PreparedStatement class. And, contrary to the native ColdFusion MX
<cfquery> tag, the PostgreSQL JDBC driver knows how to escape a backslash :)

Jochem


pgsql-jdbc by date:

Previous
From: Aaron Mulder
Date:
Subject: Re: Problem w/ getImportedKeys()
Next
From: Aaron Mulder
Date:
Subject: Re: Creating a PostgreSql Connection Pool in Tomcat3.2