Re: [PHP-DEV] Re: PDO questions

2005-09-22 Thread Wez Furlong
I plan to add some kind of prepared statement caching in a (not too distant) future PDO release, however... You'd only benefit from prepared statement caching when the underlying driver supports it. Not only does it require support from the driver, but it also requires good, solid support for it t

[PHP-DEV] Re: PDO questions

2005-09-22 Thread Ron Korving
> Ron Korving wrote: > > > 1) Does unsetting $stmt trigger a closeCursor() as well? I assume so, but > > the article doesn't mention it. It only talks about the importance of > > calling that method. > > yes this is done automatically .. Great :) > > 2) Could it be a good idea (performance wise)

[PHP-DEV] Re: PDO questions

2005-09-22 Thread Lukas Smith
Lukas Smith wrote: 3) Wouldn't it be nice if you could do a $stmt->execute("foo", "bar"); (numeric parameters) instead of $stmt->execute(array("foo", "bar")); ? I think this would severely hurt the extensibility of the API not only for PDO itself, but also for people who want to transparentl

[PHP-DEV] Re: PDO questions

2005-09-22 Thread Lukas Smith
Ron Korving wrote: 1) Does unsetting $stmt trigger a closeCursor() as well? I assume so, but the article doesn't mention it. It only talks about the importance of calling that method. yes this is done automatically .. 2) Could it be a good idea (performance wise) and possible in the first pl