pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Cc: vernonw@gatewaytech.com
Subject: Re: Special characters in SQL queries
Date: Tue, 11 Mar 2003 16:32:33 +0100
Message-ID: <3E6E0191.B8F06EBB@rodos.fzk.de> (raw)

>
> First a single quote in text, when a backforward slash in a file path,
what other special characters need padded in t
wo
> backslashes before using the data in a SQL statement?
>
> After hours' search in the PostgreSQL archive, I find a releted
information on the http://www.ca.postgresql.org/users
-
> lounge/docs/7.2/postgres/arrays.html.  It's about array data though.
>
> How can I find out those characters so that I can pre-process them
before a SQL query?
>
What about
size_t PQescapeString (char *to, const char *from, size_t length);
from the  libpq - C Library?

Regards, Christoph





view thread (7+ messages)  latest in thread

Message-ID: <3E6E0191.B8F06EBB@rodos.fzk.de>
Permalink:  ../3E6E0191.B8F06EBB@rodos.fzk.de/
Also on:    postgresql.org/message-id/3E6E0191.B8F06EBB@rodos.fzk.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de, vernonw@gatewaytech.com
  Subject: Re: Special characters in SQL queries
  In-Reply-To: <3E6E0191.B8F06EBB@rodos.fzk.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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