<div dir="ltr">If there are only the two styles, you can tell which is expected by looking at the parameters.  If you have a sequence, you use 'qmark', if a mapping, you use 'named'.  Follow the example of string.format() which will accept either keywords or positional args.  Attempting to determine the style by scanning the SQL is expensive and not a sure thing.  <br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 4:15 PM, Michael Bayer <span dir="ltr"><<a href="mailto:mike_mp@zzzcomputing.com" target="_blank">mike_mp@zzzcomputing.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On May 17, 2013, at 11:10 AM, Christoph Zwerschke <<a href="mailto:cito@online.de">cito@online.de</a>> wrote:<br>
<br>
> Am 17.05.2013 17:01, schrieb Vernon D. Cole:<br>
> > What other options should be considered?<br>
><br>
> Another option would be to get rid of the parameter completely, and silently accept both styles, whatever is used in the sql command passed to the execute method.<br>
<br>
</div>that's how dbapi3 should work for sure.   for dbapi2 compatibility, some kind of switching would be needed.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
_______________________________________________<br>
DB-SIG maillist  -  <a href="mailto:DB-SIG@python.org">DB-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/db-sig" target="_blank">http://mail.python.org/mailman/listinfo/db-sig</a><br>
</div></div></blockquote></div><br></div>