Thanks everyone for the clarification. On Fri, Jun 17, 2011 at 7:05 AM, David Nicol <davidni...@gmail.com> wrote: >> >> I don't think the answer is yes at all and I don't think David was saying >> yes. I don't think you can pass a prepared statement handle to the do >> method, it needs to be some SQL text. The above example from David does not >> pass a statement handle to do. It checks if $_[0] is a ref (which it will be >> if it is a statement handle) but if it is not (i.e., it is sql text) it >> calls do. > > > Furthermore, my super_do would not work with an object that > stringifies into SQL code. Better might be > > eval {$unknown->execute();1) or $dbh->do($unknown) > > which would need to be adjusted to capture the returned values, if > needed, and would not work with an object other than a $sth that has > an execute method. >
-- Jeff Macdonald Ayer, MA