On Thu, Jan 03, 2019 at 10:10:19PM +0100, Christoph Zwerschke wrote:
> Am 03.01.2019 um 21:58 schrieb Justin Pryzby:
> > On Thu, Jan 03, 2019 at 09:49:24PM +0100, Christoph Zwerschke wrote:
> >> db.prepare('insert-tweet', "INSERT INTO tweets VALUES($1, $2, $3)")
> >
> > My first thought is to ask why not use %s parameters ?
> 
> Because the $1 form is also the syntax for parameters used by the classic
> module in the query() method. It's very simple and natural because it's the
> same as you create the prepared statement in plain SQL.

I agree at least that there should be SOME method accepting $1 for prepared
query, and that it's more important than a method for using %s.

And it's more important for us that there be some method at all than that it
uses %s.  :)

Thanks,
Justin
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net
https://mail.vex.net/mailman/listinfo/pygresql

Reply via email to