PQescapeLiteral in Libpq

From: "lmanorders" <lmanorders(at)gmail(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: PQescapeLiteral in Libpq
Date: 2014-01-09 19:24:10
Message-ID: 32BBB8AA746343F1946197FFF3BD3582@LynnPC
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I'm using the libpq.dll libraries to connect to postgress. When I issue a call to PQescapeLiteral with a file path as the argument, the result string seems to always start with a bogus " E". For example, "C:\MyFile" is returned as " E'C:\\:MyFile'" (not including the double quotes). Is this a normal result or can't PQescapeLiteral be used to escape a file path literal? If not, are there any functions that can be used to "escape" a file path?

Thanks, Lynn

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2014-01-09 19:32:37 Re: PQescapeLiteral in Libpq
Previous Message johnnorman 2014-01-09 06:08:03 Re: How to Recover iPhone Contacts You Lost Somehow?