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: Wed, 12 Mar 2003 09:14:20 +0100
Message-ID: <3E6EEC5B.E979BF20@rodos.fzk.de> (raw)

>
> I don't program in C at all, but Java. Although I can make a way to
call the C library function
> from Java, it isn't suitable solution, I believe.
> I only desire to find out all the type of characters at the present
time so that I can strip out any
> potential problem sources in text. Who know what characters a user
will enter.
>
As Victor Yegorov mentioned
Take a look at the source code of PQescapeString() in the source
distribution of postgres. I hope, you'll find all the chars you're
interested in.
or refer to Binary Strings within the Data Types chapter of the doc.
This shows how to deal with "non-printables" and "printables".

Regards, Christoph





view thread (7+ messages)  latest in thread

Message-ID: <3E6EEC5B.E979BF20@rodos.fzk.de>
Permalink:  ../3E6EEC5B.E979BF20@rodos.fzk.de/
Also on:    postgresql.org/message-id/3E6EEC5B.E979BF20@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: <3E6EEC5B.E979BF20@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