Re: CentOS 7.3, PostgreSQL 9.6.2, PHP 5.4 deliver array as string

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: CentOS 7.3, PostgreSQL 9.6.2, PHP 5.4 deliver array as string
Date: 2017-03-02 22:36:02
Message-ID: 1dc62ea0-808b-1dc5-3b41-4877cdbab6e8@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 03/02/2017 01:30 PM, Alexander Farber wrote:
> Adrian, but the stored function works, I am just not happy that the
> results are casted to strings by PHP... and wonder hpw to fix or
> workaround this.

So what is the result when you run the function in psql?

Also if I am following correctly should this:

$bid = $row['bid'];
$letters = $row['letters'];
$values = $row['values']

not be?:

$bid = $row['out_bid'];
$letters = $row['out_letters'];
$values = $row['out_values']
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Zach Walton 2017-03-02 23:04:26 Re: Understanding pg_last_xlog_receive_location
Previous Message Thomas Kellerer 2017-03-02 21:46:48 Re: CentOS 7.3, PostgreSQL 9.6.2, PHP 5.4 deliver array as string