From: Thusitha Kodikara <kthusi@yahoo.com>
To: sandhya <sandhyar@amiindia.co.in>
To: Postgres <pgsql-admin@postgresql.org>
Cc: sandhya <sandhyar@amiindia.co.in>
Subject: Re: reg:FilePath error
Date: Wed, 15 Mar 2006 03:43:13 -0800 (PST)
Message-ID: <20060315114313.57432.qmail@web34409.mail.mud.yahoo.com> (raw)
In-Reply-To: <03ce01c6481f$7c228160$cd00000a@sandhyar>
Hi Sandhya,
Try using two "\" characters if you want to insert on
"\".
For example use
"C:\\ProgramFiles\\SampleFiles\\General\\back.doc"
\b, \r, \t ... have special meanings. Please refer
http://www.postgresql.org/docs/8.1/static/functions-matching.html
Regards,
-Thusitha
--- sandhya <sandhyar@amiindia.co.in> wrote:
> Hi....
>
> When i am trying to insert a string data into my
> table which has few escape sequence characters...The
> entire string is not getting inserted.
> Like Ex:
> If my String data is
>
> C:\ProgramFiles\SampleFiles\General\back.doc
>
> C:\ProgramFiles\SampleFiles\General\rback.gif
>
> C:\ProgramFiles\SampleFiles\General\nback.rar etc
> like this.
>
> But in my table the string is getting stored as,
>
> C:ProgramFilesSampleFilesGeneraack.doc
>
> Where as the other Strings without these characters
> are getting inserted fine.How is this happening?How
> the Strings are getting stored into the Tables?
>
> Bcoz of this \b,\n and \r characters..I am unable to
> store my data into the database and retrieve it.
>
> Is there any Solution that we have?Or we need to
> Take care of these situations/cases?
>
> Please give me your Suggestions to resolve this
> issue..
> Thank you very much..
> Regards,
> Sandhya R
>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kthusi@yahoo.com, sandhyar@amiindia.co.in
Subject: Re: reg:FilePath error
In-Reply-To: <20060315114313.57432.qmail@web34409.mail.mud.yahoo.com>
References: <03ce01c6481f$7c228160$cd00000a@sandhyar> <20060315114313.57432.qmail@web34409.mail.mud.yahoo.com>
* 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