pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-sql@postgresql.org
Cc: Sabin Coanda <sabin.coanda@deuromedia.ro>
Subject: Re: show value of backslashes in string array argument
Date: Mon, 12 Nov 2007 13:20:54 +0300
Message-ID: <200711121220.54516.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <fh97n6$24vv$1@news.hub.org>
References: <fh95jt$1ff7$1@news.hub.org>
	<fh97n6$24vv$1@news.hub.org>

Óôéò ÄåõôÝñá 12 ÍïÝìâñéïò 2007 11:51, ï/ç Sabin Coanda Ýãñáøå:
> I fond another collateral problem, because there are the different
> convention to describe a varchar array item which contains backslashes,
> when standard_conforming_strings = 'on'
>
> For instance, to get a string composed by just one character backslash I
> can use any of the two forms:
>
>     SELECT ARRAY[ '\' ]::varchar[];
>
> or
>
>     SELECT '{\\}'::varchar[];
>
> On the other hand, standard_conforming_strings = 'on' let me use varchar
> items with '\' format. So the first format seems to be aware of
> standard_conforming_strings = 'on', but the second is not.
>
> My problem is that the java driver build arrays using the second format,
> but the driver seems to be aware of standard_conforming_strings = 'on'.
> This make inconsistence using the statement parameters, because to get the
> same thing in the database I have to initialize a varchar parameter with a
> string of one backslashes, but a varchar array item has to be initialized
> with a string of two backslashes.
>
> Sabin

I would recommend:

a) Move to Unix
b) Subscribe to pgsql-jdbc@postgresql.org

>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
>                 http://www.postgresql.org/about/donate

-- 
Achilleas Mantzios



view thread (6+ messages)  latest in thread

Message-ID: <200711121220.54516.achill@matrix.gatewaynet.com>
Permalink:  ../200711121220.54516.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/200711121220.54516.achill@matrix.gatewaynet.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, sabin.coanda@deuromedia.ro
  Subject: Re: show value of backslashes in string array argument
  In-Reply-To: <200711121220.54516.achill@matrix.gatewaynet.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