From: Eric Mauvière <e.mauviere@geoclip.fr>
To: pgsql-php@postgresql.org
Subject: binary cursor returning truncated data
Date: Wed, 12 Apr 2006 16:21:49 +0200
Message-ID: <020401c65e3c$70721050$0200a8c0@EMC3> (raw)
Hello,
i am trying to retrieve binary content of a bytea field (or postgis geometry field) with a binary cursor with PHP :
$sql="BEGIN;DECLARE mycursor BINARY CURSOR FOR SELECT shape FROM $layerName; fetch all in mycursor;"
....pg_query...
But my shape field shows only two bytes of data.
Does someone know if it is a current PHP restriction ?
Thanks by advance,
Eric
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: e.mauviere@geoclip.fr
Subject: Re: binary cursor returning truncated data
In-Reply-To: <020401c65e3c$70721050$0200a8c0@EMC3>
References: <020401c65e3c$70721050$0200a8c0@EMC3>
* 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