binary cursor returning truncated data

From: Eric Mauvière <e(dot)mauviere(at)geoclip(dot)fr>
To: <pgsql-php(at)postgresql(dot)org>
Subject: binary cursor returning truncated data
Date: 2006-04-12 14:21:49
Message-ID: 020401c65e3c$70721050$0200a8c0@EMC3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Michael Fuhr 2006-04-16 16:39:32 Re: binary cursor returning truncated data
Previous Message Eric Mauvière 2006-04-12 14:20:17 binary cursor returning truncated data