From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Greg Stark <gsstark@mit.edu>
Cc: Janning Vygen <vygen@gmx.de>
Cc: pgsql-php@postgresql.org
Subject: Re: How to parse data type array columns?
Date: Wed, 17 Aug 2005 10:19:11 +0800
Message-ID: <43029E9F.2020502@familyhealth.com.au> (raw)
In-Reply-To: <871x4tx6rv.fsf@stark.xeocode.com>
References: <200508161004.07400.vygen@gmx.de>
<871x4tx6rv.fsf@stark.xeocode.com>
>>if you use array data type in your database design and query your tables with
>>PHP you get a string which represents the array. It can look something like
>>this:
>>
>>[1:2]{{"Hallo", "Te\"st},"},{"Hallo", "Test"}}
>
>
> Do you still get that if you use the binary format? I would expect it to be
> easier to parse the binary format than this format which is really intended
> for humans and dump files.
>
> I think the right place to deal with this is down in the driver where it has
> all the information about the types and can request the format it wants from
> the database.
I _really_ want to have an array parsing function in PHP...I'll have to
check if they query in binary mode or not...
Chris
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-php@postgresql.org
Cc: chriskl@familyhealth.com.au, gsstark@mit.edu, vygen@gmx.de
Subject: Re: How to parse data type array columns?
In-Reply-To: <43029E9F.2020502@familyhealth.com.au>
References: <200508161004.07400.vygen@gmx.de> <871x4tx6rv.fsf@stark.xeocode.com> <43029E9F.2020502@familyhealth.com.au>
* 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