in reply to New way to segfault: selectrow_array() with placeholders, DBD::SQLite

The docs I have for DBI don't mention this ability to pass in a prepared statement handle. They all say selectrow_array($statement... not  selectrow_array($sth...). Perhaps I'm missing something. It is odd that it segfaults, and all, but this is undocumented behaviour.

Replies are listed 'Best First'.
Re^2: New way to segfault: selectrow_array() with placeholders, DBD::SQLite
by davido (Cardinal) on Nov 01, 2004 at 17:21 UTC

    If you are using DBI version 1.45, which is what I'm using, the POD makes the following statement:

    The $statement parameter can be a previously prepared statement handle, in which case the prepare is skipped.

    Look under the description for selectrow_array() in the POD for DBI 1.45 (the latest). It's there, and the ability to use a previously prepared statement handle is definately documented. The fact that it may cause a segfault is not. ;).


    Dave

      Blummin heck, even when I'm looking for something specific I can't find it. This isn't a new feature.