binary cursor returning truncated data

From: Eric Mauvière <e(dot)mauviere(at)emc3(dot)fr>
To: <pgsql-php(at)postgresql(dot)org>
Subject: binary cursor returning truncated data
Date: 2006-04-12 14:20:17
Message-ID: 01e001c65e3c$3e9070e0$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

Browse pgsql-php by date

  From Date Subject
Next Message Eric Mauvière 2006-04-12 14:21:49 binary cursor returning truncated data
Previous Message Mariusz Pękala 2006-04-04 21:26:32 Re: Unable to connect to PostgreSQL Server: Permission denied