[DB-SIG] db module wrapper

Dieter Maurer dieter at handshake.de
Thu Aug 19 19:25:31 CEST 2004

Randall Smith wrote at 2004-8-18 15:22 -0500:
> ...
>* Standardize the params input to use the ? operator and a list.  The 
>module translates input params and query into the one appropriate for 
>the  native module.  For example with cx_Oracle: "Select foo from table 
>where goo > ?" with params [myparam] converts to "Select foo from table 
>where goo > :var1" with params {'var1':myparam}.  This is working with 
>both psycopg and cx_Oracle.

Why are you replacing a readable and reliable syntax by one
that is difficult to read and unreliable?

  As soon as you have a couple of "?", it becomes quite difficult
  to grasp...


More information about the DB-SIG mailing list