Re: binary protocol, again - Mailing list psycopg

From P. Christeas
Subject Re: binary protocol, again
Date
Msg-id 201207211434.23200.xrg@linux.gr
Whole thread Raw
In response to Re: binary protocol, again  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
On Saturday 21 July 2012, Daniele Varrazzo wrote:
> Why
> doesn't the cursor_bin (as you call it) always use only PQexecParams
> and the ISQLParam protocol for adaptation?
> What is a case in which people would want to use the same cursor for
> the two param styles?
>
> No automatic switch between the two:...


In my case, I want an improved cursor, one that will simply be able to be
"switched on" on existing applications. It is optional anyway and may be
marked 'experimental' until its functionality is almost identical to the
existing text cursors.

Using different classes, different adapters and in-transaction decisions (based
on the detected psycopg2 version, too) inside the applications is IMHO much
more messy (and expensive) than doing an automatic failover in the C library.



--
Say NO to spam and viruses. Stop using Microsoft Windows!

psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: binary protocol, again
Next
From: Raheem Sarcar
Date:
Subject: Inconsistent results when calculating "age" of db records