From: Andreas Theofilu <theofilu@eunet.at>
To: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Still have problem with single quotation mark
Date: Tue, 14 Sep 1999 07:47:24 +0200
Message-ID: <99091407591900.00493@theofilu> (raw)
References: <9909131749230E.00573@joplin>
Am Mo, 13 Sep 1999 schrieben Sie:
> On Mon, 13 Sep 1999, you wrote:
> >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 '
> >('').
>
> This is incorrect. You quote apostrophes with the backslash, so if my string
> was "that's", I would represent it as "that\'s"
It would be nice if I could do so, but at least with 'ecpg' I can't realy
do this. As already written, if I quote the apostrophes with a backslash
(that\'s), I get the run time error "too many arguments in line xxx". The
same happens if I don't quote at all. Only quoting the apostrophe with an
apostrophe gives no runtime error, but then I have the two apostrophes in
the database. This is not what I expected.
While playing around with ecpg I'm sure now, that 'ecpg' does something
wrong here. The problem is in the library 'libecpg.so'. I will try to find
out the error...
--
Theofilu Andreas
http://members.eunet.at/theofilu
-------------------------------------------------
Enjoy the science of Linux!
Genieße die Wissenschaft von Linux!
-------------------------------------------------
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: [INTERFACES] Still have problem with single quotation mark
In-Reply-To: <99091407591900.00493@theofilu>
* 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