Re: psycopg, datetime timestamps and intervals

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
Karsten Hilbert wrote:
> On Sat, Apr 19, 2008 at 10:45:11AM +0200, Federico Di Gregorio wrote:
>
>   
>> This is wrong. psycopg just does variable substitution.
>>     
> Unfortunately. Any chance this will change ?
>   

I hope not.  Parameterized queries weren't supported in the Postgres 
protocol until version 3, which wasn't introduced until Postgres 7.4.  I 
still support clients that use older versions.  Plus, when you use the 
parameterized API, you can't do multiple SQL statements per call.

Those are all solvable problems, but we need to be conscious of the 
consequences when we break backwards compatibility.

-- 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.