Received: from pop-c.netway.at (pop-c.netway.at [195.96.0.132]) by hub.org (8.9.3/8.9.3) with ESMTP id BAA38246 for ; Tue, 14 Sep 1999 01:57:09 -0400 (EDT) (envelope-from theofilu@eunet.at) Received: from pop-d.netway.at (pop-d.netway.at [195.96.0.131]) by pop-c.netway.at (8.9.1/8.9.1) with ESMTP id HAA20875; Tue, 14 Sep 1999 07:57:07 +0200 Received: from theofilu ([195.96.30.177]) by pop-d.netway.at (8.9.1/8.9.1) with SMTP id HAA00847; Tue, 14 Sep 1999 07:57:06 +0200 From: Andreas Theofilu Organization: Raiffeisen Landesbank Steiermark To: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Still have problem with single quotation mark Date: Tue, 14 Sep 1999 07:47:24 +0200 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain References: <9909131749230E.00573@joplin> MIME-Version: 1.0 Message-Id: <99091407591900.00493@theofilu> Content-Transfer-Encoding: 8bit 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! -------------------------------------------------