pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: roman <xroot@mail.ru>
To: pgsql-jdbc@postgresql.org
Subject: postgresql-8.2-504.jdbc4.jar and backslash
Date: Mon, 7 May 2007 13:15:25 +0700
Message-ID: <00c401c7906f$1ada1d20$5405a8c0@nnp.nsk.su> (raw)

Hello.
I use this jar driver for connection to postgresql 8.2.3-1 in Windows XP.
In my database I use UFT8 codepage. 
I need to save some filepath in some character varying(255) field in table1.
That path looks like this: f:\temp
in String class like this: "f:\\temp";
I try to execute following SQL statement:
UPDATE "table1" SET "field1"='f:\\temp'
in String object it looks like: "UPDATE \"table1\" SET \"field1\"='f:\\temp'".
After statement executed I get on SELECT folowing:
f:<tab symbol>emp

Why? There were two back slashes!!!
When I try to execute that update statement in pgAdminIII everything is OK!!!

Please, help me to decide this problem. How can I save filepath with backslashes?

view thread (2+ messages)  latest in thread

Message-ID: <00c401c7906f$1ada1d20$5405a8c0@nnp.nsk.su>
Permalink:  ../00c401c7906f$1ada1d20$5405a8c0@nnp.nsk.su/
Also on:    postgresql.org/message-id/00c401c7906f$1ada1d20$5405a8c0@nnp.nsk.su

 · 

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 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-jdbc@postgresql.org
  Cc: xroot@mail.ru
  Subject: Re: postgresql-8.2-504.jdbc4.jar and backslash
  In-Reply-To: <00c401c7906f$1ada1d20$5405a8c0@nnp.nsk.su>
  References: <00c401c7906f$1ada1d20$5405a8c0@nnp.nsk.su>

* 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