pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: theofilu@eunet.at
To: pgsql-interfaces@postgresql.org
Subject: Still have problem with single quotation mark
Date: Mon, 13 Sep 1999 22:11:53 +0200 (MEST)
Message-ID: <199909132011.WAA07963@eunet.at> (raw)

Hi to all,

There is still a problem with the single quotation mark (') inside a
string, when this string is inserted into the database and one uses 'ecpg'.
Someone on this list told me, that I should precede a ' with a second '
(''). Then it would not be interpreted as the end of string. I did this and
realy, now it is not interpreted at all. 'ecpg' puts now both quotation
marks into the database table. This makes for example the words 'I don't
want this' appear as 'I don''t want this'. Preceding the quotation mark
with a backslash does not help also. Then I get the SQL error 'too many
arguments in line xxx'. This is really annoying. How can I fix this?


--
Theofilu Andreas
http://members.eunet.at/theofilu

               -------------------------------------------------
                           Enjoy the science of Linux!
                       Genieße die Wissenschaft von Linux!
               -------------------------------------------------



view thread (5+ messages)  latest in thread

Message-ID: <199909132011.WAA07963@eunet.at>
Permalink:  ../199909132011.WAA07963@eunet.at/
Also on:    postgresql.org/message-id/199909132011.WAA07963@eunet.at

 · 

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-interfaces@postgresql.org
  Cc: theofilu@eunet.at
  Subject: Re: Still have problem with single quotation mark
  In-Reply-To: <199909132011.WAA07963@eunet.at>

* 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