Re: Problem with array in plpgsql function .. please help

From: David Gagnon <dgagnon(at)siunik(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem with array in plpgsql function .. please help
Date: 2005-11-03 12:36:19
Message-ID: 436A0443.70405@siunik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

>>When I call the same function
>>
>>select * from usp_Commande_Dues_Retourner('{\'1734\'}', 'M',
>>'2005-02-02', '2005-11-02', 'EN' );
>>
>>with the real line I get no result?
>>
>>
>
>Why are you quoting the value inside the quotes?
>
Because I had a bug in my java application. I modify my code to get

select * from usp_Commande_Dues_Retourner('{"1734"}', 'M',
'2005-02-02', '2005-11-02', 'EN' );

and it works ...

Thanks !
/David

>That is, is there
>a reason you're using '{\'1734\'}' instead of '{1734}'? Does using
>the latter work? It does for me in simple tests.
>
>

Thanks for your answer. That was my error.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gilvan Coelho Jr 2005-11-03 12:50:21 Documentation HELP
Previous Message Sim Zacks 2005-11-03 12:20:14 Re: left join a parenthesised inner join group