Re: libpq, PQExecParams and the inserting of binary data

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
Cc: Daniel Verite <daniel(at)manitou-mail(dot)org>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq, PQExecParams and the inserting of binary data
Date: 2005-06-04 14:57:42
Message-ID: 26431.1117897062@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com> writes:
> So, this means, user _has_to_ specify the size of input while using
> binary data.

You expected something different? libpq could hardly assume that
strlen() is the way to find out the length of a binary parameter.

regards, tom lane

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Greg Stark 2005-06-05 02:27:55 Re: DBD::Pg performance bites compared to DBD::mysql?
Previous Message Volkan YAZICI 2005-06-04 13:52:27 Re: libpq, PQExecParams and the inserting of binary data