Re: Confusion over Python drivers - Mailing list pgsql-hackers

From Andrew McNamara
Subject Re: Confusion over Python drivers
Date
Msg-id 20100211060408.C569F2365B@longblack.object-craft.com.au
Whole thread Raw
In response to Re: Confusion over Python drivers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
>> I'd like to see a requirement for the use of PQexecParams() over PQexec() - 
>> even when using libpq's PQescapeStringConn(), PQexec() makes me uneasy.
>
>Such a rule seems pretty entirely pointless, unless you have a way to
>enforce that the query string passed to the function hasn't been
>assembled from parts somewhere along the way.

The point is that if the driver is doing the right thing, the user of
the driver at least has to choice to do things safely.

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: Confusion over Python drivers {license}
Next
From: Oleg Bartunov
Date:
Subject: Re: knngist patch support